ng new NameOfProject
after the project being created cd NameOfProject to file and type
code .
More info for new ng new --help
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 g c welcome
g: generate, c: component
More info for new ng g --help
To run Unit tests
ng test
We can use e2e command to run our end-to-end tests ng e2e
ng build
If we want to Minify/uglify the application. Tree shaking drop out any dead branches.
ng build --prod