@absolutejs/absolute 0.19.0-beta.270 → 0.19.0-beta.272

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -207781,12 +207781,18 @@ var renderAngularIslandToHtml = async (component, props, islandId) => {
207781
207781
  };
207782
207782
  var mountAngularIsland = async (component, element2, props, islandId) => {
207783
207783
  await Promise.resolve().then(() => (init_compiler(), exports_compiler));
207784
- const { createComponent, inputBinding, provideZonelessChangeDetection } = await import("@angular/core");
207784
+ const {
207785
+ createComponent,
207786
+ EnvironmentInjector,
207787
+ inputBinding,
207788
+ provideZonelessChangeDetection
207789
+ } = await import("@angular/core");
207785
207790
  const { createApplication } = await import("@angular/platform-browser");
207786
207791
  const selector = getAngularIslandSelector(islandId);
207787
207792
  const app = await createApplication({
207788
207793
  providers: [provideZonelessChangeDetection()]
207789
207794
  });
207795
+ const environmentInjector = app.injector.get(EnvironmentInjector);
207790
207796
  let rootElement = element2.querySelector(selector);
207791
207797
  if (!(rootElement instanceof HTMLElement)) {
207792
207798
  element2.innerHTML = `<${selector}></${selector}>`;
@@ -207808,7 +207814,7 @@ var mountAngularIsland = async (component, element2, props, islandId) => {
207808
207814
  const bindings = Object.entries(props).map(([key, value]) => inputBinding(key, () => value));
207809
207815
  const componentRef = createComponent(component, {
207810
207816
  bindings,
207811
- environmentInjector: app.injector,
207817
+ environmentInjector,
207812
207818
  hostElement
207813
207819
  });
207814
207820
  app.attachView(componentRef.hostView);
@@ -214367,5 +214373,5 @@ export {
214367
214373
  ANGULAR_INIT_TIMEOUT_MS
214368
214374
  };
214369
214375
 
214370
- //# debugId=EF37A16EF64999E364756E2164756E21
214376
+ //# debugId=AE8708B4A1B8989164756E2164756E21
214371
214377
  //# sourceMappingURL=index.js.map