To create a new project, open the command prompt in admin mode and run
the below command.
c \>ng new MyFirstApp
It will create a brand-new project with all required
configuration and packages.
To open the source code using visual code navigate to project
folder
c \>cd MyFirstApp
c \> MyFirstApp>code .
It will open the source code in the visual studio code
editor.
To run the project use below command.
c \> MyFirstApp>ng serve –open
or
c \> MyFirstApp>ng s –o
To run
all the unit tests, use the following command
ng test
To run all the end-to-end tests, use the following command
ng e2e
ng test
To run all the end-to-end tests, use the following command
ng e2e
No comments:
Post a Comment