2.1.0 • Published 9 years ago

ngcomponentrouter v2.1.0

Weekly downloads
91
License
MIT
Repository
github
Last release
9 years ago

ngComponentRouter

Angular 2 Component Router for Angular 1

This is an extract directly built from Angular 2 source code without modification. Adding this as an npm package, because Angular hasn't released an official version yet.

Sample Usage

Check out https://github.com/duluca/angular1.5-starter for sample usage (or to reproduce any errors or issues)

For more usage scenarios, check out https://github.com/brandonroberts/angularjs-component-router

Based on Angular 2 Commit

03627aa84d90f7f1d8d62f160997b783fdf9eaa4

Procedure of Extraction

As discussed on https://github.com/angular/angular.js/issues/12926.

  • Install gulp globally npm install -g gulp@latest
  • Clone the angular 2 repo: git clone git@github.com:angular/angular.git angular2
  • Go into the angular2 directory and install the dependencies cd angular2 and npm install
  • After npm finishes, run the gulp command to build the router file gulp buildRouter.dev
  • The angular_1_router.js file will be in your angular2/dist folder.

Changes applied

  • Replaced unnecessary arrow function on line 3165: config = angular.extend({}, config, { loader: $injector.invoke(loader) });

Alternatives

This package is out there solely for convenience. You may directly import the router from Angular's npm package. Read more about on https://github.com/angular/angular.js/issues/12926.

2.1.0

9 years ago

2.0.0

9 years ago

1.6.0

9 years ago

1.5.0

9 years ago

1.4.1

9 years ago

1.4.0

9 years ago

1.3.0

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago