Create a new Angular app

As shown previously, to start a new Angular app, run the following command:

ng new user

This creates the Angular 2 user app.

Install the following dependencies:

  • Express
  • Body-parser
  • Cors
npm install express body-parser cors --save

Get TypeScript 2.x for Angular Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.