2013-07-30 127 views
0

NOTE: If you define a resource using this.resource and do not supply a function, then the implicit resource.index route is not created. In that case, /resource will only use the ResourceRoute, ResourceController, and resource template.什么是平均值的注描述

编写代码,当我看到emberjs.com此信息的,但没有任何工程在页面上。 This是我的页面。

回答

0

首先,我不确定扩展路由的含义,s没有定义。

由于您没有看到任何内容,视图是分层的,您必须有一个应用程序视图,它是定义了{{outlet}}的博客视图的父级,否则整个链将不会得到渲染。

看固定的版本: http://jsbin.com/ikituj/52/

+0

哦,谢谢你。 现在,我修改我的代码,首先链接到'博客',呈现'博客/索引'模板,然后点击blogcategory'博客/列表'将按类别显示。 http://jsbin.com/ikituj/58/edit – fung