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

  • 關於本站
  • 免責聲明