Wednesday, 26 December 2018

How to create a new/compile/open/run/test the project using Angular CLI?

Open Command Prompt as an Administrator and execute the below command

c:\>ng new AngularDemo

Installation In Progress:



After Installation:

Depending upon your internet speed it will take some time to install all packages and dependencies for the new project created.







































Once the project is created successfully open this using Visual Studio Code using the command prompt

To Open the Project In Visual Studio Code:

cd AngularDemo
ng code .



To Compile the Angular application:




To compile and lunch the light server to open the application:
To stop the light server, press CTRL + C while you are on the command prompt and then "Y" and ENTER key. This will stop the server.













To run all the unit tests:
ng test

To run all the end-to-end tests:
ng e2e

No comments:

Post a Comment