您好,我在使用@Select
和@Dispatch
装饰器
@Input() filterOutput: FilterOutput;
@Select(InjuryState.GetAll) GetAllLst$: Observable<GetAllInjuries[]>;
@Dispatch() stateInitialization = () => [new LoadAllInjuries({ filterOutput: this.filterOutput })];
injuriesListDataSource: MatTableDataSource<GetAllInjuries>;
如何将MatTableDataSource
与@Select
值一起使用
我尝试了<table mat-table [dataSource]="(GetAllLst$ | async)" class="mat-elevation-z8">
,但这不起作用
我可以不订阅而这样做吗?