| author | nowmad@nowmads-macbook-pro.local |
| Fri, 18 Dec 2015 18:09:42 +0100 | |
| changeset 78 | 08765d161e96 |
| parent 74 | 2bd46d0b2c80 |
| child 81 | 848e4a5ad4d9 |
| permissions | -rw-r--r-- |
import Ember from 'ember'; export default Ember.Route.extend({ model() { return this.store.findAll('sound'); }, actions: { willTransition: function(transition) { var _this = this; var queryParams = {}; this.controller.get('queryParams').map(function(elt, index){ queryParams[elt] = _this.controller.get(elt); }); this.transitionTo({ queryParams: queryParams }); } } });