()
| 222 | injector = inject(Injector) |
| 223 | |
| 224 | constructor() { |
| 225 | effect((onCleanup) => { |
| 226 | const unmount = this._api().mount() |
| 227 | |
| 228 | onCleanup(() => { |
| 229 | unmount() |
| 230 | }) |
| 231 | }) |
| 232 | |
| 233 | effect(() => { |
| 234 | this._api().update(this.options()) |
| 235 | }) |
| 236 | } |
| 237 | |
| 238 | cd = inject(ChangeDetectorRef) |
| 239 |