准备项目以进行延迟加载

在你的索引文件中包含 oclazyload.js 之后,将 ocLazyLoad 声明为 app.js 中的依赖项

//Make sure you put the correct dependency! it is spelled different than the service!
angular.module('app', [
 'oc.lazyLoad',
 'ui-router'
])