Angular Cheat Sheet
Create Application
ng new my-app(ng is the Angular CLI)
Questions asked during project creation:
Angular routing? Yes/**No**
Stylesheet format?
* **CSS**
* SCSS
* Sass
* LessServe the Application
cd my-app
ng serve --openng serve builds the application and starts the development server.
The --open flag opens the running application in a browser.
Bundle for Distribution
First, go to the root of the project:
cd my-appThen, you can build for dev:
ng buildOr for production, which will result in smaller files:
ng build --prodProduction files are generated in the dist/ directory.