In this example, using ng-switch, I'm able to switch between different views. Each view is assigned a controller.
I've put a quick sample online here : http://jsfiddle.net/FBHjZ/1/
It looks like the controller is reinstanciated everytime I switch views : If you enter a val in the input field, go to home and switch back to settings, the value is lost.
How can I prevent this? Basically, what I want is to keep state from previous views when I switch between views.