Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 13, 2022 10:55 am GMT

Install Angular

How to install Angular use Angular CLI.

Install Angular CLI

Install Angular CLI.
Go to the folder where you installed Node.js.
Enter the following command.

npm install -g @angular/cli 

Create a Project

Create a project.
ng new creates a project.
test1 is the project name.
You can use any name you like.
The second line confirms whether to add Angular routing.
In this case, I chose y.
The third line confirms the style sheet.
Here I selected CSS.

ng new test1? Would you like to add Angular routing? Yes? Which stylesheet format would you like to use?> CSSSCSS [ http://sass-lang.com ]SASS [ http://sass-lang.com ]LESS [ http://lesscss.org ]Stylus [ http://stylus-lang.com ]

Waking Server

Start the server.
The first line navigates to the project folder.
The second line starts the server.

cd test1ng serve

To stop the server, press ctrl + c.

Check

If you access localhost:4200 on your browser, you'll see the Angular screen.


Original Link: https://dev.to/yukikmt/install-angular-3l3e

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To