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