Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70755

A generator for Ionic Apps that uses Angular Schematics

$
0
0

@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 just ng 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’s app.module.ts file.

See:

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70755

Trending Articles