Below code in controller and a function getSug(). all this code is inside a angular controller. onclick event doesn't invoke getSug() function. How do i invoke it?
var vm = this;
var quant ="linkClick";
vm.link = '<a onclick="'+vm.getSug();+'">' + quant + '</a>';
function getSug(){}
html: <table>
<tr>
<th>link</th>
</tr>
<tr>
<td ng-bind-html="vm.link"></td>
</tr>
</table>
ng-click.