...to access the $scope of that directive and interact with that object accordingly. Similarly, you can get hold of the dependency injector for fetching services etc. But more on that in this article on the official Ionic blog. Note, if you're using Angular 2 beta.
Full article