I have an issue in html template. I want to call a function and pass a param to function. This param is a property in component class. How could I bind this property in function call. I have tried different options but could not get success.
1.
<input type="button" class='Button' value='Back'
(click)="showGrid('{{"./app/setup/" + url}}')" />
2.
<input type="button" class='Button' value='Back'
(click)="showGrid('./app/setup/ + {{url}}')" />
Using Getter in component.
get myUrl = function(){ return "./app/setup/" + ${this.Url} }
In html,
<input type="button" class='Button' value='Back'
(click)="showGrid('{{myUrl}}')" />
How could I bind the property in function call. Please suggest.
Thanks,