有Ember.js相当于Backbone.js的路由器对历史和哈希变化的? [英] Is there an Ember.js equivalent to Backbone.js Router for history and hash changes?
本文介绍了有Ember.js相当于Backbone.js的路由器对历史和哈希变化的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Backbone.js的,你可以使用路由器绑定到#更改围绕一个单页的HTML5应用程序导航。
In Backbone.js you can use the Router to bind to # changes to navigate around a single-page HTML5 app.
是否有Ember.js等效?或有我错过了一些有关其设计的基础?
Is there an equivalent for Ember.js? Or have I missed something fundamental about its design?
推荐答案
有计划编写灰烬的路由器。它可能会与StateManager的灰烬集成。现在,您可以使用 SproutCore的路由或其它路由解决方案。我目前使用SproutCore的路由成功,但它有一定的局限性。
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.
这篇关于有Ember.js相当于Backbone.js的路由器对历史和哈希变化的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文