Routable components and Ember-Data


#1

In 2014, injecting the Store into components was not a best practice. Now we know that routable components will replace the controllers. Will routable components have access to the Store?

More specifically, my question is: It is clear to me that some components will be application-specific and will not be reusable. For this type of components, would it be a good practice to give them access to the store? Maybe this goes against “data-down, actions-up”?

This is useful: https://github.com/ef4/rfcs/blob/routeable-components/active/0000-routeable-components.md

This is good reading, but a bit old: Should Ember Components Load Data?


#2

Yes.

I maintain that you should not be injecting service:store into components but manage your data top-level (routable component/route) but I’m clearly in the minority, so this pattern will be very prevalent going forward.


#3

Thanks for the clarification. I will try to not inject the store in the components (for the moment).