For some reason, my controller is double called, when I switch between resource 1 and resource2.
Here\'s the code:
index.html
This also works if you change to angular version 1.1.5