title: Alternative to passing a parameter to a getter in Angular component
body: <p>I have a number of controls in my component consisting av label, input and a validation field like shown below.</p>
  
  <pre><code>form: FormGroup;
  get c1_invalid(): boolean {
    const control = this.form.get("c1");
    return !control.valid &amp;&amp; !control.pristine;
  }
  get c2_invalid(): boolean {
    const control = this.form.get("c2");
    return !control.valid &amp;&amp; !control.pristine;
  }
  </code></pre>
  
  <p>I'm going to end up with a lot of code this way and the only deviation between the getters is the name of the control to be fetched from the form. I can't pass the ID as a parameter.</p>
  
  <p>What would be a best practice to handle it?</p>