angular.js - Angular-Strap modal box (Modal) error report
PHP中文网
PHP中文网 2017-05-15 16:54:17
0
2
598

The template data-template-url is bound to the button, and an error is reported after clicking the button Uncaught TypeError: Cannot set property 'display' of undefined (angular.js-3100)

I imported the following files:

<link href="angular-strap/style/docs.min.css" rel="stylesheet">
<script src="angular.js/1.4.2/angular.min.js"></script>
<script src="angularjs/1.4.2/angular-animate.min.js"></script>
<script src="angular-route/1.3.13/angular-route.js"></script>
<script src="angular-strap/2.3.1/angular-strap.min.js"></script>
<script src="angular-strap/2.3.1/angular-strap.tpl.min.js"></script>
PHP中文网
PHP中文网

认证0级讲师

reply all(2)
曾经蜡笔没有小新

I just downloaded that projectgit clone, and then there is no problem if I try it. I guess your reasons may be these two:
1. The path of the file in data-template-url is incorrect
2. I see the first one you introduced javascript我感觉有点不对,angular.js/1.4.2/


Let me show you my code part

滿天的星座

http://shark.mail.netease.com...
It is recommended to use the shark component library to build your angular development environment

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template