« All deprecation guides
Deprecation Guide for Ember.addListener
until: 7.0.0
id: deprecate-import-add-listener-from-ember
Previously, addListener
could be accessed via the Ember
import:
import Ember from 'ember';
Ember.addListener
If needed, addListener
can be imported:
import { addListener } from '@ember/object/events';