# ui-router-helper

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

Latest version **0.1.4** (published 2016-10-22) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install ui-router-helper
pnpm add ui-router-helper
yarn add ui-router-helper
bun add ui-router-helper
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2016-10-22 |
| First published | 2016-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+10 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Travis Sutton |
| Maintainers | tsutton |
| Keywords | ui-router, angular, helper |

## Links

- npm: https://www.npmjs.com/package/ui-router-helper
- Repository: https://github.com/travissutton/ui-router-helper
- Homepage: https://github.com/travissutton/ui-router-helper#readme
- Issues: https://github.com/travissutton/ui-router-helper/issues
- npm.io page: https://npm.io/package/ui-router-helper

## Dependencies (2)

- [angular](https://npm.io/package/angular.md) ^1.5.0
- [angular-ui-router](https://npm.io/package/angular-ui-router.md) ^1.0.0-beta

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 0.1.4 (latest) — 2016-10-22
- 0.1.3 — 2016-10-22
- 0.1.2 — 2016-10-22
- 0.1.1 — 2016-10-22
- 0.1.0 — 2016-10-22

## README

# 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.

---
_Source: https://npm.io/package/ui-router-helper · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
