Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an Ember.js equivalent to Backbone.js Router for history and hash changes?

In Backbone.js you can use the Router to bind to # changes to navigate around a single-page HTML5 app.

Is there an equivalent for Ember.js? Or have I missed something fundamental about its design?

like image 496
stef Avatar asked Dec 04 '22 18:12

stef


2 Answers

There are plans to write a router for Ember. It will likely be integrated with the Ember StateManager. For now, you can use sproutcore-routing or another routing solution. I'm currently using sproutcore-routing successfully, but it has some limitations.

like image 136
ebryn Avatar answered Dec 07 '22 07:12

ebryn


You may also want to have a look at Ember RouteManager

like image 28
Darryl Hebbes Avatar answered Dec 07 '22 09:12

Darryl Hebbes