How to Install Angular 2 - using angular-cli

By @marouadev3/12/2018angular2

1.PNG

If you're new to Angular2, you're probably wondering how exactly you get it installed. If that is the case, then you've come to the right place!

Angular-cli is a great way to set up an Angular 2 project and avoid manually copying and pasting configuration files just to get your project to build.

The steps to installing Angular 2 :

Step1:
➡️ Install npm.

Step2: Install angular-cli run the command below
➡️npm install -g angular-cli

Step3: Open cmd, create a new Angular 2 project and run this command
➡️ng new my_project

With those steps, you have a new Angular 2 project. If you go into the root directory of the project you just created and enter the command ➡️➡️ ng serve

That's all ☺️

Note : To install npm, you can follow the steps here http://bit.ly/2FyzMSP

1

comments