Hi All, I am trying to bootstrap a component at runtime for which I am
using
applicationRef.bootstrap(AComponent, containerId);
However doing so its rendering my component correctly but nothing in that
component works. Like two way binding is not working. To make it work I had
to do
const ngZone: NgZone = this.injector.get(NgZone);
ngZone.run(() => {
this.appRef.bootstrap(AComponent, '#' + containerId);
});
Is this normal?
--
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/28e9b8e4-5de9-413a-944b-4a7fb98fa7ed%40googlegroups.com.