Angular

Angular Workflow

Angular Workflow

Create an Angular project

ng new <PROJECT_NAME>

Run Angular Project

ng serve --port 4001 --open

Install a module in the project

npm install <MODULE_NAME@VERION>

Generate a custom Component

ng generate component <COMPONENT_NAME>

Generate a custom Directive

ng generate directive <DIRECTIVE_NAME>

Generate a new Service

ng generate service <SERVICE_NAME>

JSON Server (DUMMY Http Server)

  1. Start the JSON server
npm run json
  1. View the Database
http://localhost:3500/db

Reference

Original book source code