If url contains ?edit=
"true"
orfalse
, I need to append that value to my router link.
Based on the below feedback I've modified my code.
But i'm this error ?edit=%5Bobject%20Object%5D
. value of the edit is not getting appended to the URL.
Please tell me what i'm doing wrong here.
urlValue: any;
ngOnInit() {
this.urlValue = {
edit: this.activatedRoute.queryParamMap.map((params) => params.get('edit'))
};
}
<li>
<a class="production_model_col" [routerLink]="['/flow/PFSession']" [queryParams]="urlValue"><span >View Production Plan</span></a>
</li>