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:
parent
8d13d78092
commit
6d481c335a
6 changed files with 117 additions and 122 deletions
|
@ -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');
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue