In this article, you will get to know about the various useful commands commonly used in Angular. To run the commands you have to use the tools like cmd (command prompt) or MS Powershell.
The commands are as follows,
To check the Angular version
Ng -v
Useful Commands In Angular
To check the npm version
Npm -v
Useful Commands In Angular
Create a new project in Angular:
Ng new ProjectName
Folder structure after creating a new project
Useful Commands In Angular
To run the Angular applications,
Ng serve –o
To test the Angular application
Ng test
Useful Commands In Angular
To deploy the Angular application
Ng deploy
To check the configuration
Ng config
These are some of the useful commands which can be used while creating an Angular project. Hope this article is useful for everyone.