Filter at angular script
$filter('number')(val, fractionSize)
Reference : https://docs.angularjs.org/api/ng/filter/number
Filter at html
<span>{{val | number:0}}</span>
we can apply filter at both end either at script or at html expression base on requirements
No comments:
Post a Comment