title: Typescript + Html: How to force uppercase in an input field
body: <p>I'm working with angular (typescript) and I have a modelform in html where the user has to insert a code field and a description field.</p>
  
  <p>The code field must always be entered by the user, always in uppercase.</p>
  
  <p>I found and followed this question:
  <a href="https://stackoverflow.com/questions/35826325/how-to-convert-input-value-to-uppercase-in-angular-2-value-passing-to-ngcontrol/42728447">How to convert input value to uppercase in angular 2 (value passing to ngControl)</a></p>
  
  <p>but the last letter that the user inserts remains lowercase however ..
  The fundamental thing is that the database always comes in all uppercase (I also put a limit of 4 characters that works properly)
  this is my code now, but as written above it does not work properly:</p>
  
  <pre><code>&lt;input type="text" id="code" #code class="form-control" formControlName="code" maxlength="4"
                   (input)="code.value=$event.target.value.toUpperCase()"&gt;
  </code></pre>
  
  <p>has anyone found a quick, functional and fast solution?</p>
  
  <p>thank you!</p>