Controller doesn't reinitialize when redirecting to the same controller

Hey guys, i’m facing an issue when redirecting with “ui-serf” directive or with $state.go, to the same current controller, it doesn’t reinitialize, i have a menu.html template that have ion-side-menu directive side=“left” and a list of ion-item with ui-serf directive redirect to state, the first time the controller gets intilized but when the user redirect to another state and open the left side menu and click on ion-item to go back to chat state, the controller doesn’t execute !, how can i force it to reinitialize the controller.

you need to either use cache-view=“false” or do your initialisation code on $scope.on(‘ionicView.beforeEnter’, function(){})

1 Like