数据可视化大屏
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 line
593B

  1. import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
  2. import { ActivatedRoute } from '@angular/router';
  3. import { ExceptionModule, ExceptionType } from '@delon/abc/exception';
  4. @Component({
  5. selector: 'app-exception',
  6. template: ` <exception [type]="type" style="min-height: 500px; height: 80%;" />`,
  7. changeDetection: ChangeDetectionStrategy.OnPush,
  8. standalone: true,
  9. imports: [ExceptionModule]
  10. })
  11. export class ExceptionComponent {
  12. private readonly route = inject(ActivatedRoute);
  13. get type(): ExceptionType {
  14. return this.route.snapshot.data['type'];
  15. }
  16. }