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
Javascript 嵌套AngularJS模态_Javascript_Angularjs_Twitter Bootstrap - Fatal编程技术网

Javascript 嵌套AngularJS模态

Javascript 嵌套AngularJS模态,javascript,angularjs,twitter-bootstrap,Javascript,Angularjs,Twitter Bootstrap,在我的网站上,当你点击一个按钮,它会打开一个模式。以下是它的基本控制器代码: var modalOptions = { animation: true, templateUrl: 'somehtml.html', controller: 'MyController', backdrop: 'static', scope: $scope }; modalInstance = $modal.open(modalOptions); 当您处于该模式

在我的网站上,当你点击一个按钮,它会打开一个模式。以下是它的基本控制器代码:

var modalOptions = {
     animation: true,
     templateUrl: 'somehtml.html',
     controller: 'MyController',
     backdrop: 'static',
     scope: $scope
  };
modalInstance = $modal.open(modalOptions);
当您处于该模式时,您可以输入一些信息,然后点击提交。如何在现有模式的基础上创建一个模式,该模式表示“当前正在添加到数据库…”,并在完成后关闭


我环顾四周,几乎没有关于如何做嵌套模态的内容。

根据我的理解,没有办法以这种方式“嵌套”模态。对于您试图完成的任务,单击submit按钮时显示“当前添加到数据库…”的ngShow/ngHide更改将是您的最佳选择,有效地重新使用模式实例/模板。

twitter引导模式不支持嵌套。你必须推出你自己的解决方案才能让它工作。这就是我最后做的大部分。非常感谢。