File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -427,21 +427,25 @@ export interface StateDeclaration {
427
427
* .state('A', {
428
428
* redirectTo: 'A.B'
429
429
* })
430
+ *
430
431
* // a {state, params} object
431
432
* .state('C', {
432
433
* redirectTo: { state: 'C.D', params: { foo: 'index' } }
433
434
* })
435
+ *
434
436
* // a fn
435
437
* .state('E', {
436
438
* redirectTo: () => "A"
437
439
* })
440
+ *
438
441
* // a fn conditionally returning a {state, params}
439
442
* .state('F', {
440
443
* redirectTo: (trans) => {
441
444
* if (trans.params().foo < 10)
442
445
* return { state: 'F', params: { foo: 10 } };
443
446
* }
444
447
* })
448
+ *
445
449
* // a fn returning a promise for a redirect
446
450
* .state('G', {
447
451
* redirectTo: (trans) => {
@@ -450,6 +454,7 @@ export interface StateDeclaration {
450
454
* return promise;
451
455
* }
452
456
* })
457
+ * ```
453
458
*/
454
459
redirectTo ?: ( string |
455
460
( ( $transition$ : Transition ) => TargetState ) |
You can’t perform that action at this time.
0 commit comments