Skip to content

Changed references to this.store in order to allow using the mixin inside components#108

Merged
hhff merged 2 commits intoadopted-ember-addons:masterfrom
mariuszzak:change-references-to-store
Dec 1, 2015
Merged

Changed references to this.store in order to allow using the mixin inside components#108
hhff merged 2 commits intoadopted-ember-addons:masterfrom
mariuszzak:change-references-to-store

Conversation

@mariuszzak
Copy link
Copy Markdown

I had the same problem mentioned in #93 issue. I'd like to use the mixin inside components, not in routes. Actually it would be nice to have reference to this.get('store') instead this.store. I don't have injected store to each component, so it's not possible to use this.store statement even I explicitly inject by store: Ember.inject.service(). Furthermore this change doesn't affect nothing more, so it only extend the configurability.

…side components or even in simple Ember.Object.
@kellyselden
Copy link
Copy Markdown
Collaborator

This seems like a good change to me.

@davidgoli
Copy link
Copy Markdown
Collaborator

👍

hhff added a commit that referenced this pull request Dec 1, 2015
Changed references to this.store in order to allow using the mixin inside components
@hhff hhff merged commit 911b3a3 into adopted-ember-addons:master Dec 1, 2015
@hhff
Copy link
Copy Markdown
Collaborator

hhff commented Dec 1, 2015

Thanks @mariuszzak !

@kellyselden
Copy link
Copy Markdown
Collaborator

@richardvenneman First thing I notice is the model hook you are using is only called in routes, not components.

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.

4 participants