I am surprised that there’s not an easy to find example of linking to another view (page) using a button (not an anchor). I have been searching around for awhile, but nothing seems to work for me. I’m new to Angular and Ionic, but have read through the Ionic docs.
To simplify things, I am not posting the large amount of code that I am actually working on. Instead, here’s a pen that I am using to try to get ng-click to link to another view or at least open up an alert. I must be missing something simple here.
To change the page with ng-click you have to create a function on the controller and call following method: $location.path("/def/userManagement") and refering the ‘path’ with your routing defined in the app.js !!
Excellent, thanks for the quick solution! Hope this helps others out in the future that struggled with getting button links to work like it did myself.