0% found this document useful (0 votes)
41 views

Angular Notes

To create a new Angular project, first install Node.js and the Angular CLI globally. Then use the Angular CLI to generate a new project by running "ng new project-name" in the target folder. Finally, run the project using "ng serve" which will compile the TypeScript code to JavaScript and launch a development server.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Angular Notes

To create a new Angular project, first install Node.js and the Angular CLI globally. Then use the Angular CLI to generate a new project by running "ng new project-name" in the target folder. Finally, run the project using "ng serve" which will compile the TypeScript code to JavaScript and launch a development server.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Creating a new Angular Project:

1. Install Node.js on development machine.


2. Install angular CLI globally.
3. Create a new Angular project.
4. Compile & run angular project.

A Node.js is runtime environment for executing JavaScript code out of the browser environment.

Check Node.js 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.

You might also like