Hey!
I have a problem, i have a profile page that should display userdata.
In the profiles controller i have listen on an event => currentUserUpdated
var onCurrentUserUpdatedHandler = function(data) {
$scope.user = DrupalAuthenticationService.getCurrentUser();
};
notificationChannel.onCurrentUserUpdated($scope, onCurrentUserUpdatedHandler);
But the event listening works only if i’m on this page. Normally it should work all the time…
I disabled the view cach globally in my app.js .config
$ionicConfigProvider.views.maxCache(0);
and allso disabled the caching directly on the state
.state('app.authed-tabs.profile', {
url : "/profile",
cache : false,
views : {
'profile-tab' : {
templateUrl : "app/components/authed-tabs/profile/profile.html",
controller : 'authedTabProfileCtrl'
}
},
})
I know i can load userdata from service on state resolve like i do now, but it’s not what i want!!!
In previous versions of ionic all work fine with this…