How to Disallow single decimal point(.)in input field with type number in angular js
<p>How can I show the error if the user write decimal point(.) in input field type number. I am using ng-pattern but it didn't validate when single full stop is entered.</p>

<p>For ex. If i entered number"9988587146." it didn't shows error or call ng-pattern function if i write two dots then it shows error .
for Ex "9988587146.."Everthing working fine all validationS except single dot (.) in input field
HTML</p>

<pre><code>&lt;input type="number" name="number" class="form-control" placeholder="Phone Number" ng-maxlength="10" ng-minlength="10" limit-to="10" step="0" ng-pattern="checkPattern()" ng-model="user.number"   required/&gt;
</code></pre>

<p>My check Pattern function . </p>

<pre><code>var isnum = /^[0-9]{10,10}$/.test($scope.user.number);
return isnum;
</code></pre>