softlayer / sl-ember-components

An Ember CLI Addon that provides a variety of UI components.
http://softlayer.github.io/sl-ember-components
MIT License
114 stars 27 forks source link

Relocate addon component templates to app/templates? #1676

Open kaosko opened 8 years ago

kaosko commented 8 years ago

I have customized several of your components in my own app. After upgrading Ember from 1.12 to 1.13, the overridden templates were not picked up anymore. I couldn't find anything in the official docs about it, but what I gathered from https://github.com/ember-cli/ember-cli/issues/4587 and http://discuss.emberjs.com/t/ember-cli-addon-with-template/7230/3, it seemed that the templates for the addon components should actually live in app/templates/components to make them easy to override. Overriding the .js part works fine. The workaround for now is that I explicitly declare a template in the overridden component and point to my custom template.