cms/app-client/app/router.js
author nowmad@nowmads-macbook-pro.local
Tue, 15 Dec 2015 17:22:14 +0100
changeset 55 484c02a0e590
parent 35 9148b2653eb5
child 57 36dc51dd60e9
permissions -rw-r--r--
reorganize html of application

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;