Skip to content

nesta-bg/AngularCLICheatSheet

Repository files navigation

AngularCLICheatSheet

  • What is Angular CLI?
  • Installing Angular CLI.
  • Creating a New Working Angular Project using Angular CLI.
  • Options that We Can Use when Generating a new Angular Project.
  • Customising the Command Prompt.
  • Angular CLI Configuration File.
  • Angular CLI Project Structure.
  • Generating Components Using the Angular CLI.
  • Generating and Registering Services Using the Angular CLI.
  • Generating Modules Using the Angular CLI.
  • Generating Directives, Pipes and Routing Guards Using the Angular CLI.
  • Generating Classes, Interfaces and Enumerations Using the Angular CLI.
  • TypeScript Linting.
  • Angular TSLint Rules.
  • TSLint in Visual Studio Code.
  • Angular Routing.
  • How Routing Works in Angular.
  • Implementing Routing in a Separate Module in Angular.
  • Generate Routing Module using Angular CLI.
  • Running Angular app Locally.
  • Angular CLI ng serve Options.
  • Compile Angular App.
  • Angular Dev Build vs Prod Build.
  • Angular AOT - Ahead of Time Compilation.
  • Angular Just in Time compilation - JIT.
  • Difference between JIT and AOT.
  • Deploying Angular Applications to IIS.

AngularCLICheatSheet

This project was generated with Angular CLI version 8.3.5.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.