在Hawtio中更改AngularJS版本

时间:2014-10-20 05:36:49

标签: angularjs hawtio

我有用于Karaf(或JBoss Fuse)主页的Hawtio网络控制台,我还有一个AngularJS应用程序作为Hawtio中的插件。是否可以在Hawtio中更改内置(或打包)的AngularJS库的版本?我需要AngularJS的更新功能(ng-repeat-start-end),当部署为Hawtio插件时它不起作用。

1 个答案:

答案 0 :(得分:1)

由于我们有一个启用仪表板功能的补丁,目前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>

注意&#39;在ng-include指令配置中,否则你点击ng-include not working with script type="text/ng-template"