mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
244aece0fe
* feat(observe-content): add debounce option and other improvements * Adds a reusable utility for debouncing a function. * Adds the ability to debounce the changes from the `cdkObserveContent` directive. * Makes the `cdkObserveContent` directive pass back the `MutationRecord` to the `EventEmitter`. * Fires the callback once per mutation event, instead of once per `MutationRecord`. Relates to #2372. * Remove flaky tests. * Stub out the MutationObserver. * refactor: use debounce logic from rxjs * chore: fix lint error * fix: refactor the MutationObserver token to not break AoT