Bootstrap modal popup open and close using angularjs not working

我怕爱的太早我们不能终老 提交于 2019-11-28 14:41:55
 <script type="text/ng-template" id="myModalContent.html">

Remove this script tag from HTML and try again. It is working

In the Plunker you have provided, you have not set any myModalContent.html.

When using:

var modalInstance = $modal.open({
    templateUrl: 'myModalContent.html'
});

Angular will check for a myModalContent.html file to include in the modal. It means creating the modal from a template.

After reviewing your code, I think this is not exactly what you are trying to achieve:

Forked your Plunker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!