Skip to content

Commit d7770dc

Browse files
doc(redirectTo): fix formatting
1 parent 0ee00c3 commit d7770dc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/state/interface.ts

+5
Original file line numberDiff line numberDiff 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) |

0 commit comments

Comments
 (0)