Pass Data in the succeding branch of the promise
Modal service for AngularJS - supports creating popups and modals via a service.
Brought to you by:
evanfcrane
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();
});
});