Implementing Dynamic Views in Angular
Netanel Basal

Netanel Basal it works, if we navigate from home to route-one or route-two, but on hard refresh on route-one or route-two directly, getting error (Cannot read property ‘createEmbeddedView’ of undefined) . In angular docs it is recommended to access ViewChild in AfterViewInit hook, so was wondering what is the best practice.

Like what you read? Give Asad Sahi a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.