title: Angular ng-pattern to allow one dot
body: <p>How to allow on text input , numbers and one dot using Angular?</p>
  
  <p>I have this on html :</p>
  
  <pre><code>  &lt;input type="text"  ng-pattern="/^[0-9.]*$/" /&gt;
  </code></pre>
  
  <p>But I  want to allow just one dot.</p>
  
  <p>Any idea? </p>