I started a new project with ionic and i want to generate new page with CLI : ionic generate page Contact
but i had a strange tags like that : $IMPORTSTATEMENT and $IONICPAGE
import { Component } from '@angular/core';
$IMPORTSTATEMENT
/**
* Generated class for the Contact page.
*
* See http://ionicframework.com/docs/components/#navigation for more info
* on Ionic pages and navigation.
*/
$IONICPAGE
@Component({
selector: 'page-contact',
templateUrl: 'contact.html',
})
export class Contact {
constructor(public navCtrl: NavController, public navParams: NavParams) {
}
ionViewDidLoad() {
console.log('ionViewDidLoad Contact');
}
}
My ionic info cli:
Your system information:
Cordova CLI: 6.5.0
Ionic Framework Version: 3.6.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 2.1.3
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 3.10
Node Version: v6.9.4
Xcode version: Not installed
This seems like a CLI bug for the new generate functionality. You should have a look around here, and if you don’t find anything, create a new issue about it: https://github.com/ionic-team/ionic-cli/issues