We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Let's start with working demo: http://jsbin.com/monanipiwe/1/
App = Ember.Application.create(); var first = Ember.Object.create({ name: 'first', id: 1 }); var second = Ember.Object.create({ name: 'second', id: 2 }); App.ApplicationRoute = Ember.Route.extend({ model: function() { return [first, second]; } }); App.ApplicationController = Ember.ArrayController.extend({ showOnlyWithIds: [1,2,3,4,5,6], filteredModel: Ember.computed.filter('@this', function(item) { return item.get('name'); }).property('@this') });
Inside controller I have some ids that are observed by function line below. I am going to use it to filter model.
App.ApplicationController = Ember.ArrayController.extend({ showOnlyWithIds: [1,2,3,4,5,6], filteredModel: Ember.computed.filter('@this', function(item) { return item.get('name'); }).property('@this', 'showOnlyWithIds') });
But wait... I can't.
TypeError: item.get is not a function
I don't understand why but each item of showOnlyWithIds is passed as parameter to callback. Why?
showOnlyWithIds
The text was updated successfully, but these errors were encountered:
Grouping with #9462
Sorry, something went wrong.
No branches or pull requests
Let's start with working demo: http://jsbin.com/monanipiwe/1/
Inside controller I have some ids that are observed by function line below. I am going to use it to filter model.
But wait... I can't.
I don't understand why but each item of
showOnlyWithIds
is passed as parameter to callback. Why?The text was updated successfully, but these errors were encountered: