Can someone explain this to me !!!, it's the same code but in plunker works, but locally not. In ng-pattern or pattern html5 , Why??????
The first Image is my local server and I put "011.11". This is an error for me, because I need two digits before the dot and two digits after the dot, but the pattern validation not work.
The second image is plunker, and I put "011.11" and there work's.
Plunker Code
<input type="text" name="kilometros" ng-model="calculator.KmEvaluables" pattern="^([0-9]{0,2}).[0-9]{1,2}$" />
<div ng-show="calculatorForm.kilometros.$error.pattern">Not valid number!</div>
result
My code
<input type="number" name="kilometros" class="form-control" placeholder="ejemplo: 00.00" pattern="^([0-9]{0,2}).[0-9]{1,2}$" ng-model="calculator.KmEvaluables" required>
<span class="btn btn-danger" ng-show="calculatorForm.kilometros.$error.pattern ">Not valid number !</span>
result
I put the backslash before the dot patter, but still not working.
The question is..., Why in plunker work's and locally not?.