ocLazyLoad
ocLazyLoad copied to clipboard
Add an option to define a global default configuration
This PR adds a new option to define every modules defaults. Particularly useful when you want to completely deactivate the cache and use a custom cacheBuster, e.g:
angular
.module('app', [
'oc.lazyLoad',
])
.config([
'$ocLazyLoadProvider',
function ($ocLazyLoadProvider) {
$ocLazyLoadProvider.config({
moduleDefaults: {
cache: false
}
});
}
]);
Related to #306 and #336
Please note that some loaders are not yet inheriting from moduleDefaults.
When change is merge with master branch? I really need it.