This is a simple tutorial to get your first Angular2,4,x app running. Hello world at its simplest!


Download install node 7.0 and above.

Then, verify via

node -v

You should see a version if installation successful.

npm -v

You should see a version if installed successful.

npm i -g @angular/cli

You should wait awhile.

npm i -g @angular/cli
ng --version

Once completed , verify there is a version.



Create a workspace directory and run command to enter it.

ng new demo-app

Then move into that library.

cd demo-app

Then do a run.

ng serve

If all installation is successful. You should see a

** NG Live Development Server is running on http://localhost:4200 **

Open the browser and run http://localhost:4200

** NG Live Development Server is running on http://localhost:4200 **

 

Congratulations, you just have your first angular app running.

Leave a Reply

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