0.1.4 • Published 10 years ago

ui-router-helper v0.1.4

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

ui-router-helper

ES6 based helper module for ui-router 1.0 and Angular 1

Installation

npm install ui-router-helper --save

Usage

To use the helper, first add the AppRouter to your main app file.

import {AppRouter} from 'ui-router-helper';

// Add AppRouter as config
angular.module('app', [])
    .config(AppRouter);

Next, from any other file where you would like to add a route, import the addState method and use in file.

import {addState} from 'ui-router-helper"';

addState('app.home', {
    url: '/home',
    template: '<h1>Welcome</h1>'
});

The state will be added to the $stateProvider on runtime and be available for navigation.

Questions/Issues

Please use the issues section to post any issues or feedback.

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago