角度模态服务弹出问题

时间:2017-10-14 12:27:51

标签: angularjs

之前我已经集成了角度模态,但是当我尝试打开角度模态时,我现在遇到了这种问题。

以下是与该问题相关的图片Issue in Showing Popup

我在控制台中没有收到任何警告或错误。

我已经使用了这个 angular-modal-service 这个包

控制器的代码:

App.controller('leadsController', ['$scope', 'ApiService', '$location', '$state', '$rootScope', 'toastr','ModalService', function($scope, ApiService, $location, $state, $rootScope, toastr, ModalService) {

我正在调用这样的ModalService

 // Just provide a template url, a controller and call 'showModal'.
 ModalService.showModal({
     templateUrl: "pages/leadDetails.html",
     controller: "leadDetailsController"
 }).then(function(modal) {
     // The modal object has the element built, if this is a bootstrap modal
     // you can call 'modal' to show it, if it's a custom modal just show or hide
     // it as you need to.
     modal.element.modal();
     modal.close.then(function(result) {
         $scope.message = result ? "You said Yes" : "You said No";
     });
 });

但我不知道弹出窗口有什么问题。

0 个答案:

没有答案