Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Bug or Features? @Page/App directives

$
0
0

@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 :slightly_smiling:

directives?: Array<Type | any>;

PS: pipes has this issue too

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>