title: How to apply pipe on formcontrolname in angular 2
body: <p>I have an input type text which displays value using formControlName. I have written a Pipe to format the value.
  How can I apply this pipe(testpipe) on formControlName. I have read <a href="https://stackoverflow.com/questions/42249431/how-to-implement-pipe-in-a-input-type-while-using-angular2?rq=1">here</a> that you cannot apply pipe directly on input type text.</p>
  
  <pre><code>@Pipe({ name: 'testPipe' })
  export class TestPipe implements PipeTransform {
  public transform(value: string): string {
     //some logic
      return value;
  
    }
  }
  </code></pre>
  
  <p>How can I apply this pipe</p>
  
  <pre><code>&lt;input tabindex="1" type="text" class="form-control-style" 
  formControlName="abc" id="abc" name="abc" 
  readonly &gt;
  </code></pre>