Commit 471ed87ff68f6e58e540e1a8d8f43ef99078e361
1 parent
f446e749
UI: Revert entity.component annotation to directive
Showing
1 changed file
with
3 additions
and
2 deletions
... | ... | @@ -17,7 +17,7 @@ |
17 | 17 | import { BaseData, HasId } from '@shared/models/base-data'; |
18 | 18 | import { FormBuilder, FormGroup, NgForm } from '@angular/forms'; |
19 | 19 | import { PageComponent } from '@shared/components/page.component'; |
20 | -import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core'; | |
20 | +import { Directive, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core'; | |
21 | 21 | import { Store } from '@ngrx/store'; |
22 | 22 | import { AppState } from '@core/core.state'; |
23 | 23 | import { EntityAction } from '@home/models/entity/entity-component.models'; |
... | ... | @@ -25,7 +25,8 @@ import { EntityTableConfig } from '@home/models/entity/entities-table-config.mod |
25 | 25 | import { PageLink } from '@shared/models/page/page-link'; |
26 | 26 | |
27 | 27 | // @dynamic |
28 | -@Component({}) | |
28 | +@Directive() | |
29 | +// tslint:disable-next-line:directive-class-suffix | |
29 | 30 | export abstract class EntityComponent<T extends BaseData<HasId>, |
30 | 31 | P extends PageLink = PageLink, |
31 | 32 | L extends BaseData<HasId> = T, | ... | ... |