title: Angular 4 Mobile number validation
body: <p>I want to validate a mobile number using Angular 4 and it should not accept any characters other than numbers up to just 10 digits.</p>
  
  <p>Below is my code ,</p>
  
  <pre><code>&lt;input type="text" formControlName="mobileNo" minlength=10 maxlength=10&gt;
  </code></pre>