cms/app-client/app/routes/tabs/carto.js
author Chloe Laisne <chloe.laisne@gmail.com>
Thu, 22 Sep 2016 23:00:44 +0200
changeset 282 9f8355f119e7
parent 281 618aec1734d5
child 283 beebc85e0c6b
permissions -rw-r--r--
Merge

import Ember from 'ember';

export default Ember.Route.extend({

    locationQueryParam: 'world',

    model: function() {
        return this.store.query('geostat', {
            'areas': this.get('locationQueryParam')
        });
    },

    actions: {
        setlocationQueryParam: function(id) {
            this.set('locationQueryParam', id);
            this.refresh();
            
        }
    }

});