我有用于卡拉夫(或JBoss保险丝)主页的Hawtio web控制台,我也有一个AngularJS应用程序作为Hawtio的一个插件。是否可以更改Hawtio内置(或打包)的AngularJS库的版本?我需要一个更新的功能(ng-repeat-start-end)的AngularJS,它不工作时部署为Hawtio插件。
发布于 2014-10-22 06:47:45
hawtio目前有点停留在1.1.5上,因为我们有一个支持仪表板功能的补丁。但是,您可以通过ng-include和模板轻松实现相同的功能:
<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>请注意ng-include指令配置中的‘,否则将命中ng-include not working with script type="text/ng-template"
https://stackoverflow.com/questions/26459126
复制相似问题