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 has been archived by the owner on May 29, 2019. It is now read-only.
Trying to use modals in events, but am not able to call two modals one after another.
I set one modal on the $rootScope so I can reuse it and can find it at any given time.
I suspect I'm doing something wrong.
scope.$on('event:auth-loginRequired',function(){$rootScope.modal=$modal.open({templateUrl: 'login/login.tpl.html',controller: 'LoginCtrl'});};scope.$on('event:auth-loginConfirmed',function(){// close first modal -- works just fine$rootScope.modal.close('done');// Now create a new instance and open it -- but this never happens$rootScope.modal=$modal.open({templateUrl: 'survey/survey.tpl.html',backdrop: false});};
The text was updated successfully, but these errors were encountered:
Absolutely right. I did cobble a quick plunker together, that proves nothing's wrong with the modal. Sorry to bring it up. I did find the code in my app that interfered with it.
Trying to use modals in events, but am not able to call two modals one after another.
I set one modal on the $rootScope so I can reuse it and can find it at any given time.
I suspect I'm doing something wrong.
The text was updated successfully, but these errors were encountered: