Ember.js: Should component templates turn into views when the js file is deleted?

主宰稳场 提交于 2019-12-24 17:27:49

问题


I have a component with an empty Ember.Component.extend(); and a template. When I delete the js file, the component template still works and renders, but as a view instead of a component. Since the template is in "templates/components/" and Ember can find it and render it, shouldn't Ember be smart enough to render it as a component and not a view? Or is this expected behavior?

来源:https://stackoverflow.com/questions/37846577/ember-js-should-component-templates-turn-into-views-when-the-js-file-is-deleted

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