Angular IO 6 Quick CLI commands: Shortz

Just simple quick commands to create an Angular 6 application. You can read more here. In this post, we will only do not that much reading.

Install nodejs and npm before start.

Then install the Angular CLI globally.

npm install -g @angular/cli

 

Create a new project

ng new my-app

 

Run the application

cd my-app
ng serve --open

 

Create the new component

ng generate component newcomponent

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top