Hey so i have a router that looks like the following:
`import Ember from 'ember'`
`import config from './config/environment'`
Router = Ember.Router.extend(location: config.locationType)
Router.map ->
@route 'home', { path: '/'}
@route 'previous-work'
@route 'about-me'
`export default Router`
And then im trying to render a template for the home route, so in my controller folder i have a file (home/index.coffee) import Ember from 'ember'
controller = Ember.Controller.extend
`export default controller`
And also a file in the router class (home/index.coffee) And finally ofcourse a file in the template class: (home/index.hbs).
But for some reason my template is not being rendered in the outlet at all When I inspect the code in the chrome console nothing in my template is being rendered at all.
Aucun commentaire:
Enregistrer un commentaire