equal
deleted
inserted
replaced
1 import Ember from 'ember'; |
1 import Ember from 'ember'; |
2 |
2 |
3 export default Ember.Route.extend({ |
3 export default Ember.Route.extend({ |
4 |
4 |
5 modelQueryParam: 'world', |
5 modelQueryParam: '6295630', |
6 |
6 |
7 model: function() { |
7 model: function() { |
8 return this.store.query('geostat', { |
8 return this.store.query('geostat', { |
9 'area': this.get('modelQueryParam'), |
9 'area': this.get('modelQueryParam'), |
10 'details': 1 |
10 'details': 1 |
11 }); |
11 }); |
12 }, |
12 }, |
13 |
13 |
14 deactivate: function () { |
14 deactivate: function () { |
15 this.set('modelQueryParam', 'world'); |
15 this.set('modelQueryParam', '6295630'); |
16 }, |
16 }, |
17 |
17 |
18 setupController: function(controller) { |
18 setupController: function(controller) { |
19 this._super(...arguments); |
19 this._super(...arguments); |
20 controller.set('modelQueryParam', this.get('modelQueryParam')); |
20 controller.set('modelQueryParam', this.get('modelQueryParam')); |