我有用于Karaf(或JBoss Fuse)主页的Hawtio网络控制台,我还有一个AngularJS应用程序作为Hawtio中的插件。是否可以在Hawtio中更改内置(或打包)的AngularJS库的版本?我需要AngularJS的更新功能(ng-repeat-start-end),当部署为Hawtio插件时它不起作用。
答案 0 :(得分:1)
<script type="text/ng-template" id="myTemplate.html">
<div>
<header>{{item.foo}}</header>
<footer>{{item.bar}}</footer>
</div>
</script>
<div ng-repeat="item in items" ng-include="'myTemplate.html'"></div>
注意&#39;在ng-include指令配置中,否则你点击ng-include not working with script type="text/ng-template"