问题
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