Prevents using .on()
in favour of component's lifecycle hooks.
export default Component.extend({
// BAD
abc: on('didInsertElement', function () { /* custom logic */ }),
// GOOD
didInsertElement() { /* custom logic */ }
});
Prevents using .on()
in favour of component's lifecycle hooks.
export default Component.extend({
// BAD
abc: on('didInsertElement', function () { /* custom logic */ }),
// GOOD
didInsertElement() { /* custom logic */ }
});