Skip to main content
4 de 5
adicionou 79 caracteres ao conteúdo
novic
  • 36,7mil
  • 4
  • 32
  • 70

angular.module('demo', ['ui.utils.masks'])
  .controller('ctrl', function($scope) {

  });
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.28/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-i18n/1.6.6/angular-locale_pt-br.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-input-masks/2.6.0/angular-input-masks-standalone.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment-with-locales.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-input-masks/2.6.0/angular-input-masks.br.js"></script>

<div ng-app="demo" ng-controller="ctrl">
<p>
<input type="text" name="field1" ng-model="number1" ui-number-mask ui-number-min="0">
</p>
<p>
<input type="text" name="field2" ng-model="number2" ui-number-mask="3" ui-number-min="0">
</p>
<p>
<input type="text" name="field3" ng-model="number3" ui-number-mask="4" ui-negative-number ui-number-min="0">
</p>
<p>
<input type="text" name="field4" ng-model="number4" ui-number-mask ui-number-min-max="100.9" ui-number-min="10.1"></p>
<p>
<input type="text" name="field" ng-model="number" ui-number-mask ui-hide-group-sep>
</p>



</div>

novic
  • 36,7mil
  • 4
  • 32
  • 70