When trying ViewChild I am getting the error. Error is \"An argument for \'opts\' was not provided.\"
Both @ViewChild is giving the error.
you should use second argument with ViewChild like this:
@ViewChild("eleDiv", { static: false }) someElement: ElementRef;