My question is mostly conceptual. I want to show an Ionic popup to user once user taps a button.
scenario:
- inside a template, ng-click triggers the function to show the popup
- where is the correct place to write the function that shows the popup. Inside the directives link function or controller?