Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to define a global default configuration #335

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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