Monday, July 17, 2023

How to install angular and run project locally?

Install Node JS:

Download stable version from URL https://nodejs.org/en/download


Once you download the stable version you will see below package in your download folder.
Double click on node package and click on next ..next.. etc.

Once done with installation open CMD prompt and check node version and npm version





Install angular cli and ng using npm and check version using ng  command



In Angular.js the prefix ng stands for "Angular;" all of the built-in directives that ship with Angular use that prefix. Similarly, it is recommended that you do not use the ng prefix on your own directives in order to avoid possible name collisions in future versions of Angular.


Angular installation is completed. We will learn how to create new project and run it locally.

#ng new mystore

Above command will create mystore project 


Go to mystore directory and execute command #ng serve -o



On executing #ng serve -o command we can access our application using URL http://localhost:4200/























 



















No comments:

Post a Comment

How to install angular and run project locally?

Install Node JS: Download stable version from URL https://nodejs.org/en/download Once you download the stable version you will see below pac...