Angular Introduction and Set Up
In this post and in series of following articles lets talk about how to build a simple angular application and learn about some of angular’s fundamentals.
Follow below two steps to set up angular in your system.
- Install Node Js from NodeJs website.
2. To install angular run npm install -g @angular/cli in command prompt.
Now that angular is installed lets create a simple application.
- Run ng new DemoApp in the command prompt. This will create a project folder in the path specified in the command prompt.
- Go inside the project folder in command prompt and run ng serve command. Now open any browser and type http://localhost:4200/ .
Note: To open a command prompt in a specific folder in Windows OS. Go inside the folder in the file system and in the address bar type cmd and enter.
You have successfully set up and created an angular app. In the next article lets talk about folder structure in an angular application and add some functionality to the created DemoApp.