We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95fb594 commit 7fa6e43Copy full SHA for 7fa6e43
angular/src/providers/angular-delegate.ts
@@ -73,14 +73,15 @@ export function attachView(
73
? location.createComponent(factory, location.length, childInjector)
74
: factory.create(childInjector);
75
76
+ const instance = componentRef.instance;
77
const hostElement = componentRef.location.nativeElement;
78
if (params) {
- Object.assign(hostElement, params);
79
+ Object.assign(instance, params);
80
}
81
for (const clazz of cssClasses) {
82
hostElement.classList.add(clazz);
83
- bindLifecycleEvents(componentRef.instance, hostElement);
84
+ bindLifecycleEvents(instance, hostElement);
85
container.appendChild(hostElement);
86
87
if (!location) {
0 commit comments