79443762

Date: 2025-02-16 19:04:23
Score: 1.5
Natty:
Report link

The issue is in the timing. dynamicLoader is defined as ViewChild and because of that is available only after the AfterViewInit lifecycle hook and undefined during OnInit. Just switch ngOnInit to ngAfterViewInit and you should be good to go.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Igor AugustyƄski