title: how to validate mobile number using ng-pattern directive
body: <p>I want to validate mobile number field using ng-pattern directive. I want that the field data should be numeric only and exact of 10 digits. 
  Please help me to achieve this. Thanx in advance..</p>
  
  <p>Html Code</p>
  
  <pre><code>Mobile Number :
  &lt;input type="text" class="form-control" ng-model="mobileNo" name="mobileNo" /&gt;
  </code></pre>