You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
I have a login modal that I close upon successful login and then immediately open the update account modal. When the update account modal is closed, it throws the exception:
Cannotreadproperty'value'ofundefined
functionshowLoginModal(){return$modal.open({templateUrl: '/views/login.html',controller: 'LoginCtrl as L',backdrop: 'static',resolve: {mySession: function(Session){returnSession.get();}}}).result.then(function(){return$timeout(function(){console.log('trying with a timeout');return$modal.open({templateUrl: '/views/account-new.html',controller: 'AccountNewCtrl as A',backdrop: 'static',resolve: {mySession: function(Session){returnSession.get();}}}).result;});});}
After some user interaction and http requests this is called as per usual in the AccountNewCtrl:
$modalInstance.close(result)
The text was updated successfully, but these errors were encountered:
This happens when you try to close a dialog that has already been closed.
In your example @c-johnson, you don't keep track of dismissal of the dialog: http://plnkr.co/edit/XrjNiZ?p=preview.
In any case, a 'double close' shouldn't throw an error
I have a login modal that I close upon successful login and then immediately open the update account modal. When the update account modal is closed, it throws the exception:
After some user interaction and http requests this is called as per usual in the
AccountNewCtrl
:The text was updated successfully, but these errors were encountered: