title: Angular 12 ViewChild ElementRef
body: <p>In previous versions of angular we could just define a viewchild with an element ref like so</p>
  <pre><code>@ViewChild('fileInput') fileInput: ElementRef;
  </code></pre>
  <p>Now we have to initialize it in the constructor? how do we do this for elementRef if there is no default nativeelement?
  Element Ref takes in one argument <a href="https://angular.io/api/core/ElementRef" rel="nofollow noreferrer">https://angular.io/api/core/ElementRef</a></p>
  <pre><code>constructor() {
      this.fileInput = new ElementRef(?);
  }
  </code></pre>