@tetacom/ng-components 1.6.20 → 1.6.21
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.
|
@@ -1566,7 +1566,8 @@ class DynamicComponentService {
|
|
|
1566
1566
|
const componentRef = componentFactory.create(injector);
|
|
1567
1567
|
for (const key in context) {
|
|
1568
1568
|
if (Object.prototype.hasOwnProperty.call(context, key)) {
|
|
1569
|
-
componentRef.instance[key] = context[key];
|
|
1569
|
+
// componentRef.instance[key] = context[key];
|
|
1570
|
+
componentRef.setInput(key, context[key]);
|
|
1570
1571
|
}
|
|
1571
1572
|
}
|
|
1572
1573
|
const componentNativeEl = componentRef.location.nativeElement;
|