title: How to initialize ElementRef Angular - Typescript
body: <p>when I use</p>
  <p><code>@ViewChild('serachField', { static: false }) serachField: ElementRef&lt;HTMLInputElement&gt;</code></p>
  <p>I get the error</p>
  <pre><code>Property 'serachField' has no initializer and is not definitely assigned in the constructor.
  </code></pre>
  <p>I usually initialise the variable, But I'm unsure how to do it  in this case</p>
  <p>I've tried</p>
  <pre><code>@ViewChild('serachField', { static: false }) serachField: ElementRef&lt;HTMLInputElement&gt; = new ElementRef&lt;HTMLInputElement&gt;(--unsure what the parameter should be--)
  </code></pre>
  <p>I get:</p>
  <pre><code>Expected 1 arguments, but got 0.ts(2554)
  core.d.ts(2253, 17): An argument for 'nativeElement' was not provided.
  </code></pre>