@ionic/angular 8.7.17-dev.11768239180.18ee1069 → 8.7.17-dev.11769628168.11eca7cd

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.
@@ -2470,9 +2470,10 @@ class ModalController extends OverlayBaseController {
2470
2470
  defineCustomElement$3();
2471
2471
  }
2472
2472
  create(opts) {
2473
+ const { injector: customInjector, ...restOpts } = opts;
2473
2474
  return super.create({
2474
- ...opts,
2475
- delegate: this.angularDelegate.create(this.environmentInjector, this.injector, 'modal'),
2475
+ ...restOpts,
2476
+ delegate: this.angularDelegate.create(this.environmentInjector, this.injector, 'modal', customInjector),
2476
2477
  });
2477
2478
  }
2478
2479
  /** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ModalController, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
@@ -2491,9 +2492,10 @@ class PopoverController extends OverlayBaseController {
2491
2492
  defineCustomElement$4();
2492
2493
  }
2493
2494
  create(opts) {
2495
+ const { injector: customInjector, ...restOpts } = opts;
2494
2496
  return super.create({
2495
- ...opts,
2496
- delegate: this.angularDelegate.create(this.environmentInjector, this.injector, 'popover'),
2497
+ ...restOpts,
2498
+ delegate: this.angularDelegate.create(this.environmentInjector, this.injector, 'popover', customInjector),
2497
2499
  });
2498
2500
  }
2499
2501
  }