title: Assign dynamic function name to ng-click directive
body: <p>I have a dynamic menu loaded inside a AngularJS Controller and I show it in html using ng-repeat, all right until here. </p>
  
  <p>But in just one case (yet), instead of append a url to the "A" tag's href attribute, I have to append a angular method to be called by ng-click.</p>
  
  <p>The problem is, Angularjs doesn't render this ng-click or it's argument</p>
  
  <p>there's an angular way, typing saving, codeless solution for it?</p>
  
  <p>Html:</p>
  
  <pre><code>// trying to do it injecting ng-click as a tag attribute
  &lt;a ng-repeat="menu in mainMenuList" href="{{menu.href}}" {{menu.params}} &gt;{{menu.name}}&lt;/a&gt;
  
  // trying to do it injecting function name inside ng-click
  &lt;a ng-repeat="menu in mainMenuList" href="{{menu.href}}" ng-click="{{menu.ngclick}}" &gt;{{menu.name}}&lt;/a&gt;
  </code></pre>
  
  <p>Json:</p>
  
  <pre><code>$scope.mainMenuList = [
      // normal link with href and no ngclick nor parameter
      { "name" : "Store"  , "href" : "#\/store" },
  
      // trying to do it injecting ng-click as a tag attribute
      { "name" : "Logoff" , "href" : "" , "params" : " ng-click=\"logoff()\" " },
  
      // trying to do it injecting just function name to ngclick attribute
      { "name" : "Test"   , "href" : "" , "ngclick" : "userLogoff()" },
  ];
  </code></pre>