EmberJS - RequireJS - How to connect a view/template to an outlet of a child view

℡╲_俬逩灬. 提交于 2019-12-08 03:48:25

This is not a bug. ContainerViews simply don't render a template. See the api docs for Ember.ContainerView

A template, templateName, defaultTemplate, layout, layoutName or defaultLayout property on a container view will not result in the template or layout being rendered. The HTML contents of a Ember.ContainerView's DOM representation will only be the rendered HTML of its child views.

If you want to render an outlet in a template you can do this in a subclass of Ember.View without any problem. But as stated above this will not work for ContainerView nor on CollectionView I think because this is a subclass of Ember.ContainerView.

I also commented on your issue: https://github.com/emberjs/ember.js/issues/1795#issuecomment-12453015 and I think you can close it yourself.

Best regards, Mike

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