Angular Install

Basic CLI Commands

cli.angular.io

ng new

ng new NameOfProject
after the project being created cd NameOfProject to file and type code .
More info for new ng new --help

ng serve

We run ng serve

If you see package.json "start": "ng serve", add -o and we be like this "start": "ng serve -o"
we run always with npm start

ng generate

We want to generate a component

ng g c welcome g: generate, c: component More info for new ng g --help

ng test

We want to test the application

To run Unit tests ng test
We can use e2e command to run our end-to-end tests ng e2e

ng build

Prepare appliation for deployment.

ng build
If we want to Minify/uglify the application. Tree shaking drop out any dead branches. ng build --prod