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

computed.readOnly(), breaks order-in-components #85

Closed
BennyAlex opened this issue Jun 30, 2017 · 2 comments
Closed

computed.readOnly(), breaks order-in-components #85

BennyAlex opened this issue Jun 30, 2017 · 2 comments

Comments

@BennyAlex
Copy link

BennyAlex commented Jun 30, 2017

@netguru
I have a readonly computed property

companies: computed(function () {
   return this.get('store').findAll('company')
 }).readOnly(),

and it says that actions: {} should be above companies

@michalsnik
Copy link
Member

Hey @BennyAlex, you should probably use:

computed.readOnly(function () {
   return this.get('store').findAll('company')
 })

instead. Let me know if that helped :)

@michalsnik
Copy link
Member

This is connected to #83 so I'm closing this one. And above solution should help you with this particular problem @BennyAlex :)

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

No branches or pull requests

2 participants