@robinyo wrote:
A generator for Ionic Apps that uses Angular Schematics
Generating and serving an Ionic project
You can use the
ng new
command to generate a new Ionic project:ng new --collection=@ionic-angular/schematics my-app cd my-app ionic serve
If you have set
@ionic-angular/schematics
as the default collection:ng new my-app cd my-app ionic serve
Generating 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 collection
Note: @ionic-angular/schematics will add a reference to your generated
page
in your project’sapp.module.ts
file.See:
Posts: 1
Participants: 1