Angular Commands You Have To Know
Angular Commands You Have To Know
Hi there,
As you dive deeper into Angular, you will find yourself frequently using
several Angular CLI commands.
To make your life a bit easier, I've put together a quick cheat sheet of the
most commonly used commands in Angular, along with a brief
description of each.
Save this sheet for later and refer to it whenever you need a quick
refresher:
ng new projectName
Creates a new Angular project with the specified project name.
ng serve
Builds the application and starts a web server to serve your application
during development.
ng serve --open
or
ng serve -o
Same as ng serve, but also opens your default web browser to the
application.
ng generate component componentName
or
ng g c componentName
Generates a new component with the specified name.
ng build
Builds your application for production, creating a dist/ folder with the
output.
ng update
Checks your application for outdated dependencies, and can also
update them.
I hope you find this cheat sheet helpful as you navigate your Angular
journey.
Happy coding!