File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ export class UISref implements OnChanges {
115
115
116
116
/** @internal */ private _emit = false ;
117
117
/** @internal */ private _statesSub : Subscription ;
118
+ /** @internal */ private _paramsSub : Subscription ;
118
119
/** @internal */ private _router : UIRouter ;
119
120
/** @internal */ private _anchorUISref : AnchorUISref ;
120
121
/** @internal */ private _parent : ParentUIViewInject ;
@@ -129,6 +130,7 @@ export class UISref implements OnChanges {
129
130
this . _parent = parent ;
130
131
131
132
this . _statesSub = _router . globals . states$ . subscribe ( ( ) => this . update ( ) ) ;
133
+ this . _statesSub = _router . globals . params$ . subscribe ( ( ) => this . update ( ) ) ;
132
134
}
133
135
134
136
/** @internal */
@@ -159,6 +161,7 @@ export class UISref implements OnChanges {
159
161
ngOnDestroy ( ) {
160
162
this . _emit = false ;
161
163
this . _statesSub . unsubscribe ( ) ;
164
+ this . _paramsSub . unsubscribe ( ) ;
162
165
this . targetState$ . unsubscribe ( ) ;
163
166
}
164
167
You can’t perform that action at this time.
0 commit comments