Is it possible to have different functions for ng-click depending on the loaded controller page?
<a ng-click="removeEvent(event)" class="top_menu_link"> REMOVE</a>
For instance, if I want the same button to trigger a remove action but on different models like event, person, etc. And this button is located outside the ng-view.
My current solution involves calling a function with a parameter like removeItem('person')
and then having a series of if-else statements. I am curious if there is an alternative approach.