Running the following command to start the ionic 2 tutorial.
ionic start MyApp tutorial --v2
I pull that project into visual studio 2015 using New Project form existing code -> apache/cordova.
I open app.js and i see errors on the constructor and the decorator.
@App({
templateUrl: 'app/app.html'
})
Saying that the @ symbol is an invalid character.
constructor(app: IonicApp, platform: Platform) {
Essentially it is complaining about the typing. The errors are “expected )”, “expected (”… etc. If i remove “app:” and “platform:”, it will no longer have errors.
What can i do to fix these issues?
My npm global list:
cordova@5.4.0
ionic@2.0.0-alpha.23
npm@3.4.0
typescript@1.6.2