Hi All,
In my application I am trying to bootstrap component at runtime for which I
am using
bootstrap(AComp, '#' + containerId);
But doing so, rendered the component correctly but actions on it was not
working. Like two way data binding was not working on it. To fix this I had
to do
const ngZone: NgZone = this.injector.get(NgZone);
ngZone.run(() => {
this.appRef.bootstrap(AComp, '#' + containerId);
});
Is this normal?
I am using the Angular 8.
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/angular/cb5fee09-5308-43d0-ba14-388dd447663b%40googlegroups.com.