I am studying Ember and just started the tutorial on the website, and I m a bit lost with the router concept.
I used the ember router generation, and it worked great.
I have now in app folder :
./router.js:
import Ember from 'ember';
import config from './config/environment';
var Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
this.route('toto', {path: '/toto'});
});
export default Router;
./templates/toto.hbs
<h1>Toto page</h1>
./routes/toto.js
import Ember from 'ember';
export default Ember.Route.extend({
});
When i try to access my http://url.com/toto, it displays me the default application.hbs
template view;
Am I missing something ?