Hello fellow ionites!!! Just started working on Ionic2, it looks pretty simple, but don’t why I keep getting this error “Unexpected Token”, when I try initializing NavController.
import {NavController,Page} from 'ionic-angular';
import {Friend} from '../friends/friends';
@Page({
templateUrl: 'build/pages/stack/stack.html'
})
export class Stack {
constructor(nav: NavController) { //Unexpected token, what could go wrong???
this.nav = nav;
}
friends() {
alert('Debug!!!');
}
}