Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

Can't invoke one modal after another #943

@tschofen

Description

@tschofen

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

    };

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions