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>
曾经蜡笔没有小新2017-05-15 16:56:17
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
滿天的星座2017-05-15 16:56:17
http://shark.mail.netease.com...
It is recommended to use the shark component library to build your angular development environment