Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229528

Ionic Docs don't match the template generated by the CLI

$
0
0

I've been struggling with this for the whole day. I managed to override my previous revision to the newest and suddenly everything stopped working.

The fix is to add this right before constructor():

static get parameters() {
  return [[Platform]];
}

constructor(platform) {
...

That is the equivalent to:

constructor(platform: Platform) {
...

However, I am uncertain how you should work with multiple modules. But I suppose it would be:

static get parameters() {
  return [[IonicApp], [Platform]];
}

constructor(app, platform) {
...

Let me know if it worked!


Viewing all articles
Browse latest Browse all 229528

Trending Articles



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