# angular-ui-router-redirect

> redirect state to another state

Latest version **0.0.3** (published 2017-01-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-ui-router-redirect
pnpm add angular-ui-router-redirect
yarn add angular-ui-router-redirect
bun add angular-ui-router-redirect
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-01-25 |
| First published | 2017-01-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Darlan Mendonça |
| Maintainers | darlanmendonca |
| Keywords | ui.router, redirect, states |

## Links

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

## Dependencies (1)

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

## 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.0.3 (latest) — 2017-01-25
- 0.0.2 — 2017-01-25

## README

## install

```sh
npm install --save angular-ui-router-redirect
```

## usage

```js
// add dependency in you module
angular.module('app', [
  'ui.router',
  'ui.router.redirect'
]);
```

and finally, in your states, just use the key `redirectTo` with a state to redirect, e.g.

```js
angular
  .module('app')
  .config(HomeConfig)

function HomeConfig($stateProvider) {
  $stateProvider.state('home', {
    url: '/',
    redirectTo: 'users' // name of state to go
  })
```

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