File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -558,7 +558,7 @@ export interface ParamTypeDefinition {
558
558
* - No pattern modifiers like case insensitive
559
559
* - No start-of-string or end-of-string: `/^foo$/`
560
560
*/
561
- pattern : RegExp ;
561
+ pattern ? : RegExp ;
562
562
563
563
564
564
/**
@@ -572,7 +572,7 @@ export interface ParamTypeDefinition {
572
572
* The decoding behavior of raw parameters is not defined.
573
573
* See: [[ParamDeclaration.raw]] for details
574
574
*/
575
- raw : boolean ;
575
+ raw ? : boolean ;
576
576
577
577
/**
578
578
* Enables/disables inheriting of parameter values (of this type)
@@ -593,6 +593,18 @@ export interface ParamTypeDefinition {
593
593
* $state.go('home.nest');
594
594
* ```
595
595
*/
596
- inherit : boolean ;
596
+ inherit ?: boolean ;
597
+
598
+ /**
599
+ * Dynamic flag
600
+ *
601
+ * When `dynamic` is `true`, changes to the parameter value will not cause the state to be entered/exited.
602
+ *
603
+ * Normally, if a parameter value changes, the state which declared that the parameter will be reloaded (entered/exited).
604
+ * When a parameter is `dynamic`, a transition still occurs, but it does not cause the state to exit/enter.
605
+ *
606
+ * Default: `false`
607
+ */
608
+ dynamic ?: boolean ;
597
609
}
598
610
You can’t perform that action at this time.
0 commit comments