路由器/ StateManager - 不能使其工作 [英] Router / StateManager - can't make it work

查看:176
本文介绍了路由器/ StateManager - 不能使其工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试实现本指南中指定的路由器,但我可以'让它工作。任何人都可以使用最新版本的Ember快速代码示例来启用支持通过URL路由的路由器?

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?

推荐答案

一个有最新的ember,仍然容易发生变化:)

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

http://jsfiddle.net/C7LrM/86/ @mediastuttgart 发布

wycats的这个Gist的评论部分看起来像可以获得更新的fiddles的地方:) https://gist.github.com/2728699#comments

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

此示例使用: / p>

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)

有关正在开发的当前代码的文档,请去t o ember source他们在文档旁边有代码,

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

例如: 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/ 一般

这篇关于路由器/ StateManager - 不能使其工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆