logo
  • 教程列表
  • SO官方文档
  • 延迟加载
    • 准备项目以进行延迟加载
    • 用法
    • 用于路由器
    • 使用依赖注入
    • 使用该指令
  1. StackOverflow 文档
  2. AngularJS 教程
  3. 延迟加载
  4. 准备项目以进行延迟加载

准备项目以进行延迟加载

Created: November-22, 2018

在你的索引文件中包含 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'
])
  • 用法
  • 延迟加载

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明