.on()
JS-0800Avoid using .on()
in favour of component's lifecycle hooks. The order of execution for on()
is not deterministic.
export default Component.extend({
abc: on('didInsertElement', function () {
/* custom logic */
})
export default Component.extend({
didInsertElement() {
/* custom logic */
}
});