а терь сравни ui версию)
ui.directive("showPage", function () {
return function (scope, element) {
element.on("click", function () { console.log("click") });
};
});
<div controller="Main" class="menu-wrap" >
<ul repeat="item in menu" class="menu">
<li showPage>
<a href="#{item}">{item}</a>
</li>
</ul>
</div>