I’m use to working with ruby on rails when it comes to controllers. Allowing you to use a global app controller and individual page controllers that contain multiple functions within so to speak.
However with ionic/angular I’m having trouble grasping the concept of extending a controller to do more than one thing. (or how do I tell a view to use more than one controller?)
I have a controller I’d like to use globally for switching languages and a modal controller for popping up a modal. How do i get these to jive together?
Take for instance the pets sample, it has a controller for “petindex” and “petdetail” - but the way my brain works currently is that there should be a single “pets” controller that then contains an “index” and “detail” directive inside of it.