Last active
October 20, 2016 13:40
-
-
Save atomkirk/af626093548da5857d90c44c89d53b34 to your computer and use it in GitHub Desktop.
Ember.js component to replace #each template helper that only iterates over records that are saved.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
const EachRecordComponent = Ember.Component.extend({ | |
tagName: '', | |
savedRecords: Ember.computed.filterBy('records', 'isNew', false) | |
}); | |
EachRecordComponent.reopenClass({ | |
positionalParams: ['records'] | |
}); | |
export default EachRecordComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment