File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -427,21 +427,25 @@ export interface StateDeclaration {
427427 * .state('A', {
428428 * redirectTo: 'A.B'
429429 * })
430+ *
430431 * // a {state, params} object
431432 * .state('C', {
432433 * redirectTo: { state: 'C.D', params: { foo: 'index' } }
433434 * })
435+ *
434436 * // a fn
435437 * .state('E', {
436438 * redirectTo: () => "A"
437439 * })
440+ *
438441 * // a fn conditionally returning a {state, params}
439442 * .state('F', {
440443 * redirectTo: (trans) => {
441444 * if (trans.params().foo < 10)
442445 * return { state: 'F', params: { foo: 10 } };
443446 * }
444447 * })
448+ *
445449 * // a fn returning a promise for a redirect
446450 * .state('G', {
447451 * redirectTo: (trans) => {
@@ -450,6 +454,7 @@ export interface StateDeclaration {
450454 * return promise;
451455 * }
452456 * })
457+ * ```
453458 */
454459 redirectTo ?: ( string |
455460 ( ( $transition$ : Transition ) => TargetState ) |
You can’t perform that action at this time.
0 commit comments