How can I specify that I want the next load of this controller to actually run the controller body? Normally if the page has been visited, only the resolve
are re-run but not the controller bodies.
I have a case where a user updates their profile photo. So I want to have the next load of their profile controller to actually run the body and do the $scope.photo = myPerson.getPhoto()
again.
My setup is pretty standard like:
.state('profile', {
url: '/profile',
templateUrl: 'templates/profile.html',
controller: 'ProfileCtrl',
resolve: {
myPerson: function() {
return Person.getMine();
},
}
})