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

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

$
0
0

@yairneuamnn11 wrote:

when the blank template is created Ionic is imported from: 'ionic-framework/ionic'
In all the tutorials Ionic is imported from: 'ionic/ionic';

I am running Ionic version 2.0.0-beta.17

Another thing that happens is that in the constructor of any of the pages in the app once I put the following syntax:
constructor(app: IonicApp, platform: Platform) {}

I get the following error in the CLI:
Unexpected token (14:17)
12 | }
13 |

14 | constructor(app: IonicApp, platform: Platform) {
| ^
15 |
16 | // set up our app
17 | this.app = app;

Any ideas?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



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