title: How to capture touched event on angular reactive form field?
body: <p>I've been searching for a solution on this but can't find what I'm looking for. I have this form and as soon as any field gets touched I want to console out a message in <strong>ngOnInit</strong>. So far if I enter a value in any field I can show a message (<strong>"You entered a value"</strong>), but I want to be able to show a message when user <strong>touches</strong> the field. Can anyone point me in the right direction? Here's my code. </p>
  
  <p><a href="https://stackblitz.com/edit/angular-bg3fm6?file=app%2Fapp.component.ts" rel="nofollow noreferrer"><strong>LIVE DEMO</strong></a>
  Thanks a lot in advance!</p>
  
  <pre><code> ngOnInit() {
   this.myForm.valueChanges.subscribe(res =&gt; {
    console.log("You entered a value");
    // Here I want to show a message ("A field has been touched") when any field of the form gets touched
   })
  }
  </code></pre>