angular pipe for 2 decimal places
{{ number | number : '1.2-2'}}
angular pipe for 2 decimal places
{{ number | number : '1.2-2'}}
angularjs round to 2 decimal places input
<input type="number" name="myDecimal" placeholder="Decimal" ng-model="myDecimal | number : 2" ng-pattern="/^[0-9]+(\.[0-9]{1,2})?$/" step="0.01" />
angular 5 convert number to two decimal in html {{}}
<div>{{ value | number:'1.2-2' }}</div>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us