2) Creating new Project from Terminal

  • C\......> ng new hello-world
  • It asks to create Angular routine (y/n)
  • Then creates bunch of files by installing several packages 
  • After successful creation we get message saying "Packages installed sucessfully" 


Do not forget to add PATH while installing Visual Studio
  • Go to cmd prompt and  go to hello-world folder path in C\ and then type
  • C\....hello-world> code .
  • Now visual studio with Hello World projected opened will Open

Now we need to load our application in Web server
  • Go to terminal and hello-world path
  • Type 
  • C\....hello-world> ng serve
  • The we will have live server listening on local host
  • It will generate bundles for Javascript(main.js) and CSS(styles.js) files
  • We can now view our first app in http://localhost:4200/

No comments:

Post a Comment

1) Install and Run

Go to  https://nodejs.org/en/  and install the latest stable version. Run the download and install it Once installation is done, go to comma...