--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/cms/app-client/app/controllers/results.js Thu Dec 10 16:49:43 2015 +0100
@@ -0,0 +1,17 @@
+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;
+ }
+ })
+});