Hi David, really nice article! Do you know if it is possible to make this approach work for zoneless apps ({ ngZone: 'noop' })? I've tried but it seems like it can work only with zone.js. Without it, the lazy-loaded component renders only static elements in the template. E.g. anything using async pipe does not work. Any idea?
Oh, probably, I just have to trigger the change detection manually after creation of the componentRef: componentRef.changeDetectorRef.detectChanges(). I think it works now.
Hey @stativka
sorry for my late answer! Mega cool question and really happy that you even find and share the solution, really kind of your and good to know 👍
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi David, really nice article! Do you know if it is possible to make this approach work for zoneless apps (
{ ngZone: 'noop' }
)? I've tried but it seems like it can work only with zone.js. Without it, the lazy-loaded component renders only static elements in the template. E.g. anything usingasync
pipe does not work. Any idea?Oh, probably, I just have to trigger the change detection manually after creation of the componentRef:
componentRef.changeDetectorRef.detectChanges()
. I think it works now.Hey @stativka sorry for my late answer! Mega cool question and really happy that you even find and share the solution, really kind of your and good to know 👍