Rigth Menu and unique function


I need to add to my application a popoverMenu in right header corner.
Now I can add it in index.html (before ) but I need add ng-click action to one link in this. I need a $scope.function() that is for all page (so I can edit only one time). How I can reach this?