(SOLVED) Ionic tab tamplate calling controller twice on first call


#1

Hi,

When I use the tabs template for a new app, the controller of the first tab loaded is called twice.

This problem can be simulated just by doing:
ionic start newApp tabs

Adding a log in www\js\controllers.js -> DashCtrl
.controller('DashCtrl', function($scope) {console.log("here")})

cd newApp
ionic serve

I found this issue that seems to be related, but it is closed, so I dont know if it has already a solution:

Does anyone facing something similar?

Thanks,


#2

Sorry,

I made a mistake when testing it.

The behavior is as expected.

Thanks