Menu

#120 Pass Data in the succeding branch of the promise

open
nobody
None
2015-12-08
2015-12-08
Anonymous
No

Originally created by: HknLof

Hi is there a way to deal with the following scenario:

        ModalService.showModal({
            templateUrl : "go/find/it",
            controller : "PageLinkModalController",
            inputs: {
                renderMe: $scope.renderMe
            }
        }).then(function (modal) {
            $http.get($scope.pageUrl)
                .then(function (response) {
                    $scope.renderMe = response.data;
                    modal.element.modal();
            });
        });

Related

Tickets: #121

Discussion


Log in to post a comment.