一个模式里面开模 [英] Open modal inside a modal
本文介绍了一个模式里面开模的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个角度的UI模式。在有一个button.On单击此按钮,我想打开角度ui.how另一个模式,我可以做到这一点。
I have a angular ui modal. In that there is a button.On clicking this button I want to open another modal in angular ui.how can i do this
$scope.open = function () {
var modalInstance = $modal.open({
templateUrl: 'myModalContent.html',
controller: ModalInstanceCtrl,
})
};
myModalContent.html包含点击一个按钮,我想打开另一个模式。<一类=BTN BTN-成功的href =#角色=按钮NG点击=openModal()>开放式模态和LT; / A>
我无法打开点击按钮模态
I am unable to open a modal on clicking the button
推荐答案
您可以打开第二个模式没有任何麻烦
You can open a second modal without any trouble
var modalInstanceSecond = $modal.open({
templateUrl: 'mySecondModalContent.html',
controller: 'ModalInstanceCtrl',
});
看看这个plunker:
Take a look to this plunker:
<一个href=\"http://plnkr.co/edit/vfWJogYvMFFL2XcvM0pJ?p=$p$pview\">http://plnkr.co/edit/vfWJogYvMFFL2XcvM0pJ?p=$p$pview
这篇关于一个模式里面开模的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文