Bug or Features? @Page/App directives


#1

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 :slight_smile:

directives?: Array<Type | any>;

PS: pipes has this issue too

UPDATE:
Maybe I must do “extends Type” to my directive?