From be2a7b8f93dce55b8de7b6c0c7d8bd531a57ea8d Mon Sep 17 00:00:00 2001 From: Ivan Matiishyn Date: Wed, 21 Dec 2016 17:59:53 +0100 Subject: [PATCH] [angular-ui-router] Added description for redirectTo --- angular-ui-router/index.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/angular-ui-router/index.d.ts b/angular-ui-router/index.d.ts index 5cf718c1fd..e246d3dae8 100644 --- a/angular-ui-router/index.d.ts +++ b/angular-ui-router/index.d.ts @@ -94,6 +94,13 @@ declare module 'angular' { * Boolean (default true). If false will reload state on everytransitions. Useful for when you'd like to restore all data to its initial state. */ cache?: boolean; + + /** + * string | function | object + * Synchronously or asynchronously redirects Transitions to a different state/params + */ + redirectTo?: String | Function | IState; + } interface IUnfoundState {