I am trying to write a HTML tag
<li ng-repeat="(key, value) in getusermenu">
<a ng-click="ctrl.{{key}}()" ng-href="#!{{key}}">{{value}}</a></li>
. Here I am getting values of key and value successfully. But the problem here is
ng-click="ctrl.{{key}}()" is not calling the function. But when I am hardcoding(ng-click="ctrl.functionName1()") the function name it's running fine. The problem here is, angular js is not printing the key if it is in middle. How I can achieve this?