@skyux/core 6.11.2 → 6.12.0
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/documentation.json +445 -416
- package/esm2020/lib/modules/dynamic-component/dynamic-component-options.mjs +1 -1
- package/esm2020/lib/modules/dynamic-component/dynamic-component.service.mjs +6 -2
- package/fesm2015/skyux-core.mjs +5 -1
- package/fesm2015/skyux-core.mjs.map +1 -1
- package/fesm2020/skyux-core.mjs +5 -1
- package/fesm2020/skyux-core.mjs.map +1 -1
- package/lib/modules/dynamic-component/dynamic-component-options.d.ts +5 -0
- package/package.json +2 -2
package/fesm2020/skyux-core.mjs
CHANGED
@@ -1173,9 +1173,13 @@ class SkyDynamicComponentService {
|
|
1173
1173
|
options = options || {
|
1174
1174
|
location: SkyDynamicComponentLocation.BodyBottom,
|
1175
1175
|
};
|
1176
|
+
const injector = Injector.create({
|
1177
|
+
providers: options.providers || [],
|
1178
|
+
parent: this.injector,
|
1179
|
+
});
|
1176
1180
|
const componentRef = this.componentFactoryResolver
|
1177
1181
|
.resolveComponentFactory(componentType)
|
1178
|
-
.create(
|
1182
|
+
.create(injector);
|
1179
1183
|
this.applicationRef.attachView(componentRef.hostView);
|
1180
1184
|
const el = this.getRootNode(componentRef);
|
1181
1185
|
const bodyEl = this.windowRef.nativeWindow.document.body;
|