(callback: MutationCallback)
| 58 | @Service() |
| 59 | export class MutationObserverFactory { |
| 60 | create(callback: MutationCallback): MutationObserver | null { |
| 61 | return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback); |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | /** An injectable service that allows watching elements for changes to their content. */ |