Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Added configurable default options #31

Merged
merged 1 commit into from
Nov 25, 2014
Merged

Added configurable default options #31

merged 1 commit into from
Nov 25, 2014

Conversation

aleksihakli
Copy link
Contributor

Hey,

I added some configurable options with a provider that creates usSpinnerConfig object. You can now configure defaults for any spinner on application startup, they can still be overridden with the directive options. Karma tests are included in the PR.

Example of configuration:

angular.module('myApp', ['angularSpinner'])
  .config(['usSpinnerConfigProvider', function (usSpinnerConfigProvider) {
    usSpinnerConfigProvider.setDefaults({color: 'blue'});
  }]);

@coveralls
Copy link

Coverage Status

Coverage decreased (-3.75%) when pulling 0480017 on aleksih:master into 4fbaeed on urish:master.

@aarr0n
Copy link

aarr0n commented Nov 25, 2014

+1 for this to be merged; would be extremely useful!

urish added a commit that referenced this pull request Nov 25, 2014
Added configurable default options
@urish urish merged commit 1bc88a7 into urish:master Nov 25, 2014
@urish
Copy link
Owner

urish commented Nov 25, 2014

Thanks!

@urish urish mentioned this pull request Nov 25, 2014
@aarr0n
Copy link

aarr0n commented Nov 25, 2014

Sweet!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants