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.
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});};