BUG: Ionic silently fails when using same controller on two elements

Here is a scenario where Ionic silently fails without giving any indication as of what happened. If you are providing a controller on the body tag like this:

And then you provide the same controller on the content tag like this:

Then everything you are doing with the MainController will silently fail. The solution is to remove the ng-controller from the content.