Closed vaibhav-jain closed 8 years ago
Solved by loading files without ocLazyLoad.
I am facing the same issues with loading files with ocLazyLoad.js
This is my config in routing ,
$ocLazyLoadProvider.config({
'debug': true, // For debugging 'true/false'
'events': true, // For Event 'true/false'
'modules': [{ // Set modules initially
name : 'reportModule', // State1 module
files: ['src/app/reportModule/controllers/reportModule.js','src/app/reportModule/models/reportModuleService.js']
}]
});
$stateProvider.state('reportModule', {
url: '/reportmodule',
views: {
"main": {
controller: 'ReportModuleController',
templateUrl: 'reportModule/views/reportModule.tpl.html'
}
},
resolve: {
loadMyCtrl: ['$ocLazyLoad', function($ocLazyLoad) {
return $ocLazyLoad.load('reportModule'); // Resolve promise and load before view
}]
},
data: {
pageTitle: 'Report'
}
});
am getting error Something Like this,
Other than that i want to tell you that my projects loads all the modules with grunt's tasks So how does that affect ondemand loading .? Can you Please help me ?
Regards.
I am facing the same problem. Trying to find the solution.
When I load the view ('/app/configuration/') first time it works fine but when I try to load the view again I get error