NOTE说明的含义是什么

时间:2013-07-30 09:25:20

标签: ember.js

  

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是我的页面。

1 个答案:

答案 0 :(得分:0)

首先,我不确定扩展Route(s)是什么意思,s未定义。

由于您没有看到任何内容的主要原因,视图是分层的,您必须具有应用程序视图,该视图是定义了{{outlet}}的博客视图的父级,否则整个链将无法获得呈现。

查看修订版: http://jsbin.com/ikituj/52/