Skip to content

Conversation

@zhouzi
Copy link

@zhouzi zhouzi commented Aug 3, 2016

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

allows to define a config to be used as defaults for every modules
@zhouzi
Copy link
Author

zhouzi commented Aug 3, 2016

Please note that some loaders are not yet inheriting from moduleDefaults.

@luismatesanz
Copy link

When change is merge with master branch?
I really need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants