Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Change store service to a provider #20

Merged
merged 12 commits into from
Mar 16, 2015
Merged

Change store service to a provider #20

merged 12 commits into from
Mar 16, 2015

Conversation

4kochi
Copy link
Contributor

@4kochi 4kochi commented Feb 25, 2015

  • add sessionStorage store
  • change store with storeProvider.setStore() or set it in store.getNamespacedStore()
  • add lint task for jshint checks gulp lint
  • add code coverage task gulp cover

Andreas Krummsdorf added 11 commits February 24, 2015 08:15
- possible values are 'localStorage', 'sessionStorage' and 'cookieStorage'
- default store is 'localStorage'
- fallback store is 'cookieStorage' when localStorage or sessionStorage are not available in the browser
add method setStore() to set the storage with the storeProvider

```js
angular.module('app', ['angular-storage'])
    .config(function (storeProvider) {
        storeProvider.setStore('sessionStorage');
    })
    .controller('ctrl', function(store) {
        store.set('name', 'wayne');
    });
```
@4kochi
Copy link
Contributor Author

4kochi commented Mar 13, 2015

🔔 @mgonto 😉

@mgonto
Copy link
Contributor

mgonto commented Mar 13, 2015

Hey sorry bout the delay. It looks awesome :).

Just 2 questions:

  • The Karma ALL is only testing it with PhantomJS. Is that the intention? What's the difference with the one that was already there?
  • Why did you do the coverage as a different Karma config instead of just adding the coverage to the existing test runner?

Thanks again for the PR!

@4kochi
Copy link
Contributor Author

4kochi commented Mar 13, 2015

Did you run the gulp test-all task? It should use all browser found on your system. The plugin karma-detect-browsers overwrites the browsers array in karma.

I can try to merge the normal karma config and the karma coverage config together.

* makes karma-src.coverage.conf.js unnecessary
@4kochi
Copy link
Contributor Author

4kochi commented Mar 14, 2015

I removed the extra karma file for code coverage. Also you should consider adding travis so that all test run a each push/pull request to the repo. Just nice to have 😎

@mgonto
Copy link
Contributor

mgonto commented Mar 16, 2015

Now it looks awesome :).

Thanks for the update :).

Merging. I'll add Travis and release it later this week :).

Thanks for all the hard work!

mgonto added a commit that referenced this pull request Mar 16, 2015
Change store service to a provider
@mgonto mgonto merged commit a8588c0 into auth0:master Mar 16, 2015
@rictorres rictorres mentioned this pull request Jun 23, 2015
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

2 participants