Open sighWang opened 8 years ago
$window.onbeforeunload = function(e) { $localStorage.contractForm = vm.contractForm; //does't work here var dialogText = ''; e.returnValue = dialogText; return dialogText; };
ngStorage's onbefore function should (if allowed) be run before this. But it might not be. Will look into it.
$window.onbeforeunload = function(e) { $localStorage.contractForm = vm.contractForm; //does't work here var dialogText = ''; e.returnValue = dialogText; return dialogText; };