Skip to content

withloveinternet/ngComponentRouter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

3739588e97591f6fa102f8afd0b2248ff692eeca

Procedure of Extraction

As discussed on angular/angular.js#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.

Alternatives

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

About

Angular 2 Component Router for Angular 1

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%