search

Home  >  Q&A  >  body text

angular.js - Angular-Strap 模态框(Modal) 报错

在按钮上绑定了模板 data-template-url,点击按钮后报错 Uncaught TypeError: Cannot set property 'display' of undefined (angular.js-3100)

我引入了以下文件:

<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中文网2745 days ago592

reply all(2)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新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

    reply
    0
  • 滿天的星座

    滿天的星座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

    reply
    0
  • Cancelreply