Slide 15
Slide 15 text
Router
1 import Ember from 'ember';
2
3 var Router = Ember.Router.extend({
4 location: ContactoENV.locationType
5 });
6
7 Router.map(function() {
8 this.resource('contacts', { path: '/contacts' }, function() {
9 this.route('show', { path: '/:id' });
10 this.route('edit', { path: '/:id/edit' });
11 this.route('new');
12 });
13 });
14
15 export default Router;
app/router.js