title: Angular 4 -Convert the Text field value to uppercase on the fly
body: <p>I have a text field in my html page</p>
  
  <pre><code>&lt;input type="text" class="form-control" name="myText" #origin="ngModel"  [(ngModel)]="defaultText" required pattern="[A-Z]{3}"/&gt;
  </code></pre>
  
  <p>when user enter some text in text field in lower case letters, then it should converted to uppercase immediately</p>
  
  <p>how to achieve it angular 4</p>