![](/img/trans.png)
[英]How can I render content into an emberjs template that is rendered by the application template?
[英]How can I display a specific view in the main application template with EmberJS
作为EmberJS的入门者,我想知道如何在主模板中显示特定视图?
当我单击application.hbs中的菜单时,我想显示User,Event使用组件的最佳做法是什么? dal亵意见? 你有什么好的教程吗?
这就是{{outlet}}
的作用。 如果您将/users
路由添加到路由器,并且添加了users.hbs
。 它将在application.hbs
的{{outlet}}
中呈现此模板
请参见本 jsbin例如。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.