/ui-router-extras

Extras for UI-Router for AngularJS. Sticky States (a.k.a. parallel states), Deep State Redirect (for tab-like navigation), Future States (async state definition)

Primary LanguageJavaScript

Addons for Angular UI-Router:

Full Website (description, API, demos): http://christopherthielen.github.io/ui-router-extras/

UI-Router is the defacto router for AngularJS.

UI-Router Extras adds 4 additional features to help you write large modular applications.

  • Sticky State
  • Deep State Redirect
  • Future State
  • Previous State

Dependencies

  • required:
    • "angular": "~1.2.0",
    • "angular-ui-router": "~0.2.10"

Install

  1. download the files
    1. Bower
      1. add "ui-router-extras": "latest" to your bower.json file then run bower install OR run bower install ui-router-extras
  2. include the files in your app
    1. ct-ui-router-extras.min.js
  3. include the module in angular (i.e. in app.js) - ct.ui.router.extras

Development

  1. git checkout master
    1. run npm install && bower install
    2. write your code then run grunt
    3. git commit your changes

The Gruntfile.js default target generates the output files into a build/ directory. It runs all unit tests on the built file, as well as the minified file.