Clear $scope on logout in Angular js

后端 未结 5 1287
深忆病人
深忆病人 2021-01-19 10:59

In my controller I am storing data as $scope.$parent.dossierSummaries = data; but after log out and login the application $scope.$parent.dossierSummaries<

5条回答
  •  深忆病人
    2021-01-19 11:48

    If you want to clear the $scope, I think you can use it's constructor method or proto (prototype), which is used in constructor. I believe you can do that to reset the scope to initial state. If someone knows any more on this, feel free to comment.

提交回复
热议问题