title: Disable input on keydown in angular6?
body: <p>I am trying to set <code>attribute disable</code> to that input only on which keydown event occured and remaining input should not be disabled?</p>
  
  <h2>abc.component.html</h2>
  
  <pre><code>&lt;input type="text" (keydown)="disableIt($event)"&gt; // &lt;-- If keydown occurs 
                                                     //here, disable it
  &lt;input type="text" (keydown)="disableIt($event)"&gt;
  &lt;input type="text" (keydown)="disableIt($event)"&gt;
  </code></pre>
  
  <h2>abc.component.ts</h2>
  
  <pre><code>public disableIt(evt) {
     if (evt.keyCode === 13 || evt.keyCode === 9) {
         evt.target.tagName.disabled  = true;
      }
  }
  </code></pre>