In the past, using @ViewChild('#templateId') was an accepted method for obtaining an Element Reference.
@ViewChild('#templateId') elementName: ElementRef;
However, it appears that this is no longer a viable approach as @ViewChild now requires a specific component to inject.
I have experimented with injecting ElementRef into the constructor, but I am struggling to access a deeply nested Element Reference within the template. While this may be a solution, I am hoping to find an alternative method if possible.