Javascript BS开关AngularJS上的模态

Javascript BS开关AngularJS上的模态,javascript,jquery,angularjs,bootstrap-modal,Javascript,Jquery,Angularjs,Bootstrap Modal,你好!我正在制作一个页面,我正在使用bs开关。当我打开它时,应该弹出的模式已经显示出来了。我现在的问题是,当我关闭它时,一个不同的模式也会弹出。我试过几种代码,但都不起作用。谢谢你的帮助 这是我的交换机html代码: <div class="switch_button"> <input type="checkbox" ng-model="checkbox[$modalArray]" ng-change="modalVolEn($modalArray)" bs-sw

你好!我正在制作一个页面,我正在使用bs开关。当我打开它时,应该弹出的模式已经显示出来了。我现在的问题是,当我关闭它时,一个不同的模式也会弹出。我试过几种代码,但都不起作用。谢谢你的帮助

这是我的交换机html代码:

 <div class="switch_button">
    <input type="checkbox"   ng-model="checkbox[$modalArray]" ng-change="modalVolEn($modalArray)" bs-switch />
</div>
还有我的情态动词:

  <div class="modal fade" id="showModal" data-keyboard="false" data-backdrop="static"  tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">

---------

<div class="modal fade" id="showModal2" data-keyboard="false" data-backdrop="static"  tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">

---------

你能为你的代码创建有效的plunkr吗?很遗憾,我不能@PareshGami。请给我一个示例,说明您使用的是哪个引导版本?@PareshGami该概念与此JSFIDLE相同,但它不在角度上,并且在打开和关闭时显示相同的模式。我需要的是显示不同的modals@PareshGami bootstrap switch-v3.3.2是我正在使用的版本。你能为你的代码创建工作plunkr吗?不幸的是,我不能@PareshGami。请给我一个示例,说明您使用的是哪个引导版本?@PareshGami该概念与此JSFIDLE相同,但它不在角度上,并且在打开和关闭时显示相同的模式。我需要的是显示不同的modals@PareshGami引导开关-v3.3.2是我正在使用的版本
  <div class="modal fade" id="showModal" data-keyboard="false" data-backdrop="static"  tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">

---------

<div class="modal fade" id="showModal2" data-keyboard="false" data-backdrop="static"  tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">