Router / StateManager - can't make it work

拟墨画扇 提交于 2019-12-06 16:15:20

问题


I've been trying to implement a router as specified in this guide, but I can't make it work. Can anyone give a quick code sample using the latest version of Ember to enable a router that supports routing through urls?


回答1:


Here is a one with ember latest, still prone to changes :)

http://jsfiddle.net/C7LrM/86/ posted by @mediastuttgart

The comments section of this Gist by wycats looks like the place where you can get updated fiddles :) https://gist.github.com/2728699#comments

This example uses:

handlebars-1.0.0.beta.6.js 

Ember latest as of now:
// Version: v0.9.8.1-484-g73ac0a4
// Last commit: 73ac0a4 (2012-07-06 11:52:32 -0700)

For documentation of present code under development please go to ember source where they have documentation alongside code,

Eg: https://github.com/emberjs/ember.js/blob/master/packages/ember-routing/lib/router.js

https://github.com/emberjs/ember.js/blob/master/packages/ember-routing/ in general



来源:https://stackoverflow.com/questions/11386176/router-statemanager-cant-make-it-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!