$ocLazyLoad懒加载的时候 加载ui-grid报错 $$animateJS is not a function

来源:互联网 发布:数据分析师 挂靠 编辑:程序博客网 时间:2024/06/08 11:16

懒加载ui-grid 刷新页面之后 就会报错$$animateJS is not a function

去stackoverflow上查了一个小时候;然后测试成功:

.state('monitor.monitor_our', {  url: "/monitor_our/{monitorKind:1}",  templateUrl: "app/monitor_our/monitor_our.html",  controller: "MonitorOurController as ctrl"  ,  resolve      : {    deps : ['$$animateJs','$ocLazyLoad',      function ($$animateJs, $ocLazyLoad) {        return $ocLazyLoad.load([          {            files: ['app/echart_custom/echarts.min.js','../../bower_components/angular-ui-grid/ui-grid.min.js']          }        ])      }    ]  }})
需要先加载
'$$animateJs'

0 0
原创粉丝点击