@robinyo wrote:
A generator for Ionic Apps that uses Angular Schematics
Generating and serving an Ionic project
You can use the
ng newcommand to generate a new Ionic project:ng new --collection=@ionic-angular/schematics my-app cd my-app ionic serveIf you have set
@ionic-angular/schematicsas the default collection:ng new my-app cd my-app ionic serveGenerating Pages and Services
You can use the
ng generate(or justng g) command to generate Ionic pages:ng generate page --collection=@ionic-angular/schematics pages/my-new-page ng g page --collection=@ionic-angular/schematics pages/my-new-page # using the alias ng g page pages/my-new-page # if @ionic-angular/schematics is the default collectionNote: @ionic-angular/schematics will add a reference to your generated
pagein your project’sapp.module.tsfile.See:
Posts: 1
Participants: 1