1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 07:09:43 +02:00

idiomatic code for {{component}} helper

This commit is contained in:
Harvey Kandola 2017-03-07 10:09:36 +00:00
parent 8d13d78092
commit 6d481c335a
6 changed files with 117 additions and 122 deletions

View file

@ -12,9 +12,4 @@
import Ember from 'ember';
export default Ember.Component.extend({
didReceiveAttrs() {
this._super(...arguments);
this.set('rendererType', 'section/' + this.get('page.contentType') + '/type-renderer');
}
});