How to Install Angular 2 - using angular-cli

in #angular27 years ago (edited)

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

Sort:  

Congratulations @marouadev! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Are you a DrugWars early adopter? Benvenuto in famiglia!
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Congratulations @marouadev! You received a personal award!

Happy Steem Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Downvote challenge - Add up to 3 funny badges to your board
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.17
TRX 0.16
JST 0.029
BTC 60412.47
ETH 2375.47
USDT 1.00
SBD 2.62