title: How to get formControlName Programmatically in Angular 5 or above
body: <p>Need to know, when you have a multiple controls in a form and you want to know to which control user changed so that you can take some actions.</p>
  
  <pre><code>&lt;input formControlName="item_name" #itemName (input)="inputChanged(itemName)"&gt;
  </code></pre>
  
  <p><strong>Why I need to get formControlName?</strong></p>
  
  <p>as you can see in the image, some fields are edited but not confirmed that's why user sees options to verify or cancel the operation on that specific field. That's why I require to get <code>formControlName</code> of input-changed field so that I can display the options only to that field.</p>
  
  <p><a href="https://i.stack.imgur.com/lWWuA.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/lWWuA.jpg" alt="enter image description here"></a></p>
  
  <p>I have searched for its solution but couldn't found on <code>stack-overflow</code> that's why I decided to post this question with answer</p>