author | nowmad@nowmads-macbook-pro.local |
Thu, 10 Dec 2015 16:57:59 +0100 | |
changeset 46 | b9afefcfe964 |
parent 41 | b6815b3d46bd |
permissions | -rw-r--r-- |
import Ember from 'ember'; export default Ember.Controller.extend({ queryParams: ['location'], location: null, filteredSounds: Ember.computed('location', 'model', function() { var location = this.get('location'); console.log("model ? ", this.get('model')); var sounds = this.get('model'); if (location) { return sounds.filterBy('location', location); } else { return sounds; } }) });