You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The name of the {@link QueryParam} inside its parent {@link QueryParamGroup}.
@@ -37,12 +37,20 @@ export class QueryParamNameDirective implements OnInit {
37
37
}
38
38
39
39
/** @ignore */
40
-
publicngOnInit(){
41
-
if(!this.name){
42
-
thrownewError(`queryParamName has been added, but without specifying the name.`);
43
-
}
40
+
publicngOnChanges(changes: SimpleChanges){
41
+
constnameChange=changes['name'];
42
+
if(nameChange){
43
+
if(!nameChange.firstChange){
44
+
thrownewError(`You tried to switch from queryParamName=${nameChange.previousValue} to queryParamName=${nameChange.currentValue} which is currently not supported.`);
45
+
}
44
46
45
-
this.groupService.addQueryParam(this);
47
+
constname=nameChange.currentValue;
48
+
if(!name){
49
+
thrownewError(`queryParamName has been added, but without specifying the name.`);
0 commit comments