Reputation: 151
I am getting uncaught error when using map() method on router. Any ideas ??
App.Router.map(function(match) {
match('/').to('index');
match('/models').to('models');
});
Error:: Ember JS :: Uncaught TypeError: Object App.Router has no method 'map'
Ember Version : http://cloud.github.com/downloads/emberjs/ember.js/ember-latest.js
Upvotes: 3
Views: 1263
Reputation: 952
Bit tricky to find the upadate on the official github. You can get a copy of it here though:
https://github.com/sh4n3d4v15/ember-todos/blob/master/app/scripts/vendor/ember.js
Upvotes: 2