Search code examples
ember.jsember-router

Ember.js new router 'history' implementation


I think I checked all the documentation but I cannot use the 'history' implementation of the router. Anyone have a short example on how that should be used? Or, generally, how should router parameters be passed to the new router (logging too, for example).


Solution

  • Before defining the routes mapping, I would try to do something like

    App.Router = Ember.Router.extend({
      location: 'history'
    })