Reputation: 3043
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';
Upvotes: 1
Views: 58
Reputation: 7396
Use this syntax:
[routerLink]="(editMode || readOnly) ? [] : ['', defaultRelatedGuideUrl, link.slug]">
Upvotes: 1