if you have a controller to manipulate $scope variables in Angular.js, is there an idiomatic way to:
- reset the controller's $scope, and
- restart controller initialization?
For complex controllers it would be very convenient not to have to reset every variable to it's initial value, especially if what you really want is a simple reinitialization of the controller and the scope. Navigating to the same URL again via $location.path() doesn't help, though.
Edit: Suppose I can't use any $window.location hack because this would violate the CSP in Chrome Packaged Apps.