angularjs – angular-ui:使用popover-template
发布时间:2020-12-17 17:59:53 所属栏目:安全 来源:网络整理
导读:我发布了一个早先的问题: angular-ui-bootstrap: Implementing html in popover using popover-html,有人建议我使用popover-template. i popover-template="popover-partial.html" popover-title="In Progress" class="glyphicon glyphicon-info-sign"/iscr
我发布了一个早先的问题:
angular-ui-bootstrap: Implementing html in popover using popover-html,有人建议我使用popover-template.
<i popover-template="popover-partial.html" popover-title="In Progress" class="glyphicon glyphicon-info-sign"></i> <script type="text/ng-template" id="popover-partial.html"> <b>Jody</b> </script> 所以我试图这样做,但现在弹出窗口不会在点击时激活. 我使用的是版本0.13.4. 解决方法
popover-template值应该是string,换句话说你可以这么说,它需要一个表达式/ scopeVariable.
<i popover-template="'popover-partial.html'" popover-title="In Progress" class="glyphicon glyphicon-info-sign"> </i> Demo (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Play Framework&Scala:单元测试中FakeRequest和JSON P
- 是否存在搜索unix $PATH变量的函数,如果存在某个文件则返回
- 小丸子总结angularjs的一些问题
- WebService中使用自定义类的解决方法
- SHELL脚本--expr命令全解
- Linux真的很流行吗?现实却与我们认知中的相反……
- twitter-bootstrap – Zurb Foundation比Twitter Bootstrap
- bash – 自动将所有stderr和stdout捕获到文件中,并仍然显示
- 将Scala Set转换为Java(java.util.Set)?
- bootstrapSwitch开关组件在模态框加载问题