Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs附加背景显示为$modal_Angularjs_Modal Dialog - Fatal编程技术网

Angularjs附加背景显示为$modal

Angularjs附加背景显示为$modal,angularjs,modal-dialog,Angularjs,Modal Dialog,我对$modal使用了完全相同的代码,但在背景中会出现一个额外的窗口 这是代码和屏幕截图 $scope.displaySaveMessage = function(size) { var modalInstance = $modal.open({ templateUrl : 'contactsSave.html', control

我对$modal使用了完全相同的代码,但在背景中会出现一个额外的窗口

这是代码和屏幕截图

                $scope.displaySaveMessage = function(size) {
                    var modalInstance = $modal.open({
                        templateUrl : 'contactsSave.html',
                        controller : ModalInstanceCtrl,
                        size:size, 
                        scope:$scope,
                        resolve: {
                            save_message: function () {
                              return $scope.save_message;
                            }
                        }
                    });
                };
我无法上传屏幕截图。。。
我无法直接上载图像,但它位于

如何调用displaySaveMessage?请确保$scope.displaySaveMessage没有被调用两次。使用$scope.displaySaveMessage'sm'从控制器内调用;没有叫过两次。问题不在于它显示了两个模态,而是有一个更大的div或窗口在其中显示模态。除了有一个背景div或窗口外,模态按预期显示。这不是背景,而是一个额外的背景。如果我能附上截图的话会有帮助的。这可能有助于上传截图。