TransitionHook | UI-Router
Methods
- handleHookResult(hookResult: any): Promise<any>
-
Parameters
Returns Promise<any>
- invokeHook(moreLocals: any): any
- runSynchronousHooks(hooks: TransitionHook[], locals?: object, swallowExceptions?: boolean): Promise<any>
-
Parameters
-
-
locals Default value: object = {}
-
swallowExceptions Default value: boolean = false
Returns Promise<any>
This method handles the return value of a Transition Hook.
A hook can return false, a redirect (TargetState), or a promise (which may resolve to false or a redirect)