()
| 41 | private _observer: MutationObserver | undefined; |
| 42 | |
| 43 | constructor() { |
| 44 | const el = this.element; |
| 45 | this._observer = new MutationObserver(mutations => { |
| 46 | for (const mutation of mutations) { |
| 47 | if (mutation.attributeName === 'id') { |
| 48 | this.popupId.set(el.id); |
| 49 | } |
| 50 | } |
| 51 | }); |
| 52 | |
| 53 | this._observer.observe(el, { |
| 54 | attributes: true, |
| 55 | attributeFilter: ['id'], |
| 56 | }); |
| 57 | } |
| 58 | |
| 59 | ngOnInit() { |
| 60 | this.popupId.set(this.element.id); |