AngularJS 1.5: component router with NPM

The new angular component router is changing quickly.

The current docs on angular which can be found here seems to be outdated

The documentation ask for the following
npm install @angular/router –save

As of April 2016, the way to install the new angular component router using NPM is
npm install @angular/router@0.2.0 --save


Once installed, include it in your script
<script src="/node_modules/@angular/router/angular1/angular_1_router.js">

Author: mark

Creative technologist

Leave a Reply

Your email address will not be published. Required fields are marked *