cms/app-client/app/router.js
author nowmad@nowmads-macbook-pro.local
Mon, 30 Nov 2015 17:49:12 +0100
changeset 35 9148b2653eb5
parent 16 70e9a764d6d7
child 57 36dc51dd60e9
permissions -rw-r--r--
update the route with new names

import Ember from 'ember';
import config from './config/environment';

var Router = Ember.Router.extend({
  location: config.locationType
});

Router.map(function() {
  this.route('tabs/langues', { path: '/langues' });
  this.route('tabs/carto', { path: '/cartographie' });
  this.route('tabs/thematiques', { path: '/thematiques' });
  this.route('tabs/discours', { path: '/discours' });
  this.route('tabs/chrono', { path: '/chronologie' });
});

Router.reopen({
  onUrlChange: function() {
    console.log(this.get('url'));
  }.observes('currentPath')
});

export default Router;