Hi everyone. I have com-switcher component which active uses controller.
{{com-switcher companies=app.companies websites=app.websites ctrl=controller}}
And on compilation get error:
DEPRECATION: Using {{controller}}
or any path based on it (‘builder/templates/sidebar.hbs’ @ L3:C63) has been deprecated. [deprecation id: view.keyword.controller] See Ember.js - Deprecations
-template-keywords for more details.
I have tried to fix like in link example:
{{#com-switcher companies=app.companies websites=app.websites ctrl=controller as |passedData|}}
{{/com-switcher}}
And i got the same deprecation alert.
This component doesn’t have any template. All DOM structure is appended dynamically, like
didInsertElement: function() {
this.$().append('<div>component</div>');
}
How can i fix this? How can i pass controller in proper way?