Issue
I need to use string varible as outletname rr
this is my code:
public redirect(): any {
let rr = 'productModal';
let rr2 = 'm/addProduct';
return this.router.navigate(
['link/link', {outlets: {rr: rr2}}]
);
}
Solution
public redirect(): any {
let rr = 'productModal';
let rr2 = 'm/addProduct';
return this.router.navigate(
['link/link', {outlets: {[rr]: rr2}}]
);
}
Answered By - Johansrk
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.