Running your Angular app

Run your Angular app to check whether it works. During development, you can execute npm start, through the ng serve command; this action will transpile, package, and serve the code on localhost with live-reloading enabled:

  1. Execute npm start
  2. Navigate to http://localhost:5000
  3. You should see a rendered page similar to this:
Default Angular CLI landing page
  1. Stop your application by pressing Ctrl + C in the integrated terminal.

Get Angular 6 for Enterprise-Ready Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.