I'm having trouble setting a variable's value within an ng-click function.
<a href="#newpage" ng-click="service.name='{{sub.cid}}'"> view</a>
However, when I use plain text instead of an Angular data value, it works perfectly fine.
<a href="#newpage" ng-click="service.name='abc'">
What could be the issue in my code?