Video Course

Getting Started with Angular v4: Lesson 7 of 26

Angular Packages

Up Next

System.js

Autoplaying in 7 seconds!

Cancel

Create a Free Account to Watch

Sign Up Now

Login to your account

After we've gotten the dependencies, we can finally pull the actual Angular packages. Since Angular is very modular and considered a framework now, these are going to be pulled in as separate modules (just like how you would load a separate JS file for ngAnimate, ngRoute, UI.Router, etc).

The main packages are:

  • @angular/core
  • @angular/common
  • @angular/compiler
  • @angular/platform-browser
  • @angular/platform-browser-dynamic

The optional packages that are a good idea to bring into your apps as you'll most likely use them:

  • @angular/router
  • @angular/http
  • @angular/forms

Install them all with a single command:

npm install @angular/core @angular/common @angular/compiler @angular/platform-browser @angular/platform-browser-dynamic @angular/forms @angular/http @angular/router --save

You can see our final package.json with all the dependencies and scripts here.

Chris Sevilleja

157 posts

Co-founder of Scotch.io. Slapping the keyboard until something good happens.