@xr0master wrote:
If I add a directive to @Page or @App, I get an error message.
@Page({ templateUrl: 'page.html', directives: [MyDirective] })
... not assignable to parameter type PageMetadata
in the PageMetadata
directives?: Array<Type | any[]>;
SO right code must be:
directives: [[MyDirective]]
or we need move any[] type to any
directives?: Array<Type | any>;
PS: pipes has this issue too
UPDATE:
Maybe I must do "extends Type" to my directive?
Posts: 1
Participants: 1