Skip to content

Instantly share code, notes, and snippets.

View DIGnmg's full-sized avatar
🏠
Working from home

Nathanael Gethers DIGnmg

🏠
Working from home
View GitHub Profile
import Ember from 'ember';
export default Ember.Component.extend({
didReceiveAttrs() {
this._super(...arguments);
const filterBy = this.get('filter');
if (filterBy !== null) {
this.set('items', this.filterItems(filterBy));
} else {
console.log('no filter');