@ionic/angular 7.6.7-dev.11706195565.179aa5a7 → 7.6.7-dev.11706197709.160c1815
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.
|
@@ -815,7 +815,14 @@ const attachView = (zone, environmentInjector, injector, applicationRef, elRefMa
|
|
|
815
815
|
if (elementReferenceKey && instance[elementReferenceKey] !== undefined) {
|
|
816
816
|
console.error(`[Ionic Error]: ${elementReferenceKey} is a reserved property when using ${container.tagName.toLowerCase()}. Rename or remove the "${elementReferenceKey}" property from ${component.name}.`);
|
|
817
817
|
}
|
|
818
|
-
|
|
818
|
+
if (componentRef.setInput !== undefined) {
|
|
819
|
+
for (const key in params) {
|
|
820
|
+
componentRef.setInput(key, params[key]);
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
else {
|
|
824
|
+
Object.assign(instance, params);
|
|
825
|
+
}
|
|
819
826
|
}
|
|
820
827
|
if (cssClasses) {
|
|
821
828
|
for (const cssClass of cssClasses) {
|