title: whitespace in angular 4
body: <p>Pattern that doesn't allow whitespace at the begining. Please find the code below : </p>
  
  <pre><code>&lt;input class="mdl-textfield__input inputMaterial"  maxlength="100" 
  [(ngModel)]="getEmpName[i]" (keydown)="onKeyPress($event)" pattern="[a-zA-Z 
  ]*" appFloatLabelDirective="" formControlName="employer_name"&gt;
  </code></pre>