数据可视化大屏
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

exception.component.ts 593B

1年前
1234567891011121314151617
  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. }