Getting Started

Installing The Prerequisite

Installing The NPM Packages

  • Before proceding you'll need to install npm packages. You can do this by running npm install from the root of your project to install all the necessary dependencies.

Development Server

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

Code Scaffoldings

  • Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class

Building

  • 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.

Preloading Strategy

  • Provides a preloading strategy that preloads all modules as quickly as possible.
  • To get more help on the PreloadAllModules check out the https://angular.io/api/router/PreloadAllModules .
  • You can put this code in app-routing.module.ts.

Further Help

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