AngularJS error $rootScope:infdig

If you are facing a error like this one:

It is a bug with the angular router “otherwise”.

So in your app.js routing section change your otherwise:

for the function version: