You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2020. It is now read-only.
Ionic CLI generate page command doesn't add 'Page' sufix to the class name
What behavior are you expecting?
When generating new page through ionic cli, the class name of the .ts file generated should contains Page at the end of the name
import{Component}from'@angular/core';import{IonicPage,NavController,NavParams}from'ionic-angular';/** * Generated class for the About page. * * See http://ionicframework.com/docs/components/#navigation for more info * on Ionic pages and navigation. */
@IonicPage()
@Component({selector: 'page-about',templateUrl: 'about.html',})exportclassAboutPage{constructor(publicnavCtrl: NavController,publicnavParams: NavParams){}ionViewDidLoad(){console.log('ionViewDidLoad AboutPage');}}
Steps to reproduce:
ionic start --v2 myApp blank
ionic g page about
import{Component}from'@angular/core';import{IonicPage,NavController,NavParams}from'ionic-angular';/** * Generated class for the About page. * * See http://ionicframework.com/docs/components/#navigation for more info * on Ionic pages and navigation. */
@IonicPage()
@Component({selector: 'page-about',templateUrl: 'about.html',})exportclassAbout{constructor(publicnavCtrl: NavController,publicnavParams: NavParams){}ionViewDidLoad(){console.log('ionViewDidLoad About');}}
Which @ionic/app-scripts version are you using?
Your system information:
Cordova CLI: 6.5.0
Ionic Framework Version: 3.1.1
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.10.3
Xcode version: Not installed
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Related issue driftyco/ionic#8320
Related issue driftyco/ionic-cli#1442
The text was updated successfully, but these errors were encountered:
Short description of the problem:
Ionic CLI generate page command doesn't add 'Page' sufix to the class name
What behavior are you expecting?
When generating new page through ionic cli, the class name of the .ts file generated should contains Page at the end of the name
Steps to reproduce:
Which @ionic/app-scripts version are you using?
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Related issue driftyco/ionic#8320
Related issue driftyco/ionic-cli#1442
The text was updated successfully, but these errors were encountered: