angularJs $ocLazyLoad controller not function undefine
来源:互联网 发布:垓下歌与大风歌 知乎 编辑:程序博客网 时间:2024/06/11 02:43
当引用ocLazyLoad ,进行模块的懒加载时,报了一个这错controller not function undefine。
开始这么写的:
resolve: { deps: ['$ocLazyLoad', function ($ocLazyLoad) { return $ocLazyLoad.load('ui.tinymce').then( function(){ return $ocLazyLoad.load('js/controllers/type/help.js'); } ); }] }
后来加了一个name,就可以了
resolve: { deps: ['$ocLazyLoad', function ($ocLazyLoad) { return $ocLazyLoad.load({ name: 'app', files: [ 'module/sec-kill-list/secKillService.js', 'module/sec-kill-list/secKillController.js' ]}); }] }
本文主要是看了这个
https://stackoverflow.com/questions/26681160/using-oclazyload-to-lazy-load-a-controller-with-stateprovider
阅读全文
0 0
- angularJs $ocLazyLoad controller not function undefine
- Angularjs ocLazyLoad-master 应用
- 用angularjs 模块时Error: [ng:areq] Argument 'controller' is not a function,
- $ocLazyLoad懒加载的时候 加载ui-grid报错 $$animateJS is not a function
- Uncaught TypeError: Super expression must either be null or a function, not undefine
- oclazyload
- angularJS directive中的controller和link function辨析
- angularjs Controller
- 利用ocLazyLoad加载controller的方法和问题
- Controller中错误 TypeError: $rootScope.$broadcast is not a function
- 学习angularjs时遇到 XX is not a function
- [AngularJS]Argument 'xxxx' is not a function, got undefined
- AngularJS Error: [ng:areq] loginController is not a function
- AngularJS 报错: $http(...).success is not a function
- AngularJs异常:TypeError: v2.showAddGroupPanel is not a function
- AngularJS Argument 'customersController' is not a function, got undefined,errors.angularjs.org/1.3.1
- AngularJS学习(三) Controller
- angularJS controller inheritance
- Python shell清屏
- 支付宝的公钥和私钥
- 多图详解Spring框架的设计理念与设计模式
- 解决Echarts图表在div动态切换时不显示的问题
- <!DOCTYPE html> 设置百分比高度的问题
- angularJs $ocLazyLoad controller not function undefine
- spring的注解
- 使用JQuery的前端验证
- 新手安装laravel框架
- linux命令: chown
- nodejs访问sqlite3
- ArrayList、Vector、LinkedList的异同点
- download
- Spring框架简介