Issue
I have below template, how to bind the defaultRelatedGuideUrl
from the controller to the template?
[routerLink]="(editMode || readOnly) ? [] : ['/defaultRelatedGuideUrl/', link.slug]">
Controller:
@Input() defaultRelatedGuideUrl = 'myparam';
Solution
Use this syntax:
[routerLink]="(editMode || readOnly) ? [] : ['', defaultRelatedGuideUrl, link.slug]">
Answered By - Mahdi Zarei
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.