title: Get element by id - Angular2
body: <p>I have a code:</p>
  
  <pre><code>document.getElementById('loginInput').value = '123';
  </code></pre>
  
  <p>But while compiling the code I receive following error:</p>
  
  <blockquote>
    <p>Property value does not exist on type HTMLElement.</p>
  </blockquote>
  
  <p>I have declared a var: <code>value: string;</code>.</p>
  
  <p>How can I avoid this error? </p>
  
  <p>Thank you.</p>