cms/app-client/app/routes/tabs/carto.js
author Chloe Laisne <chloe.laisne@gmail.com>
Sun, 25 Sep 2016 13:45:54 +0200
changeset 289 7cae80e5748c
parent 283 beebc85e0c6b
child 291 478cdcc56a63
permissions -rw-r--r--
Add transcript icon to playlist items

import Ember from 'ember';

export default Ember.Route.extend({

    locationQueryParam: 'world',

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

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

});