Closed biswa007 closed 7 years ago
It is not the issue of ocLazyLoad. you can do it like this:
app.config(['$rootScope', '$stateProvider', '$urlRouterProvider', '$authProvider','$ocLazyLoadProvider', function($rootScope, $stateProvider, $urlRouterProvider, $authProvider, $ocLazyLoadProvider){
...
}
It works~
my mistake
thanku @Kuroky360
This is my main app js codes
`(function(){ ;"use strict"; var app = angular.module('lfclient', ['ngResource', 'ngMessages', 'ngAnimate', 'toastr', 'ui.router', 'oc.lazyLoad', 'satellizer']); app.config(['$ocLazyLoadProvider', '$stateProvider', '$urlRouterProvider', '$authProvider', function($rootScope, $stateProvider, $urlRouterProvider, $authProvider, $ocLazyLoadProvider) {
}]);
})();`
and its giving this error
TypeError: Cannot read property 'config' of undefined at http://127.0.0.1:3000/app.js:7:24
Am I missing something?? Please help thanks