Creating a new Angular Project:
1. Install [Link] on development machine.
2. Install angular CLI globally.
3. Create a new Angular project.
4. Compile & run angular project.
A [Link] is runtime environment for executing JavaScript code out of the browser environment.
Check [Link] installed or not by node -v in command prompt.
Angular CLI:
Angular CLI is a command line interface which we use to create new angular project or generate
some boiler plate code as well as create deployable packages.
npm install -global @angular/cli@latest
Create Angular Project:
To create a new angular project, move to the folder where you want to create the project using
command prompt and type the following command.
ng new project-name
Compile & run:
To run an angular project, move to the project folder using command prompt and type following
command.
ng Serve
The typescript code is compiled and converted in JavaScript code.
Created a project “D:\angular-complete-course\angular-ekart”
If we delete node_module folder of our angular project we install the dependencies again by
npm install command.