How to repeat a click handler in ngRepeat (AngularJS)?
<p>I have the following problem. I wanna repeat menu links. But the program doesn't create the corresponding click handler.</p>

<p>View:</p>

<pre><code>//view is created by Angular Material
&lt;md-menu-item ng-repeat="mItem in ::menuItems"&gt;
    &lt;md-button ng-click="mItem[action]"&gt;
        &lt;md-icon&gt;{{ ::mItem.icon }}&lt;/md-icon&gt;
        {{ ::mItem.name }}
    &lt;/md-button&gt;
&lt;/md-menu-item&gt;
</code></pre>

<p>Ctrl:</p>

<pre><code>$scope.menuItems = [
        { icon: 'mode_edit', name: 'Edit', action: 'clickEdit()' },
        { icon: 'delete', name: 'Delete', action: 'clickDelete()' }
    ];

$scope.clickEdit = clickEdit;
$scope.clickDelete = clickDelete;

    function clickEdit() {
        $log.info('edit clicked');
    }

    function clickDelete() {
        //code...
    }
</code></pre>

<p>What I need to do to get the handlers in ngClick?</p>