Menu

#121 Pass Data in the succeding branch of the promise

closed
nobody
None
2015-12-09
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(url)
                .then(function (response) {
                    $scope.renderMe = response.data;
                    modal.element.modal();
            });
        });

I want to set some data to be rendered, right after I receive the data

Discussion

  • Anonymous

    Anonymous - 2015-12-09

    Ticket changed by: HknLof

    • status: open --> closed
     

Log in to post a comment.