在我的控制器中,我存储数据,$scope.$parent.dossierSummaries = data;
但在注销并登录后,应用程序$scope.$parent.dossierSummaries
保留相同的旧数据。
我在注销时这样做
.success( function( response, status ) {
if ( response.status > 0 ) {
var u = $rootScope.user.username;
$cookieStore.remove('myapp');
$rootScope.user = { username: '', role: 0 };
success(u);
}
else {
error(response.messages);
}
})
.error( function( response, status ) {
error(['There was an error logging you out.']);
});