This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
currency filter on negative value not in parentheses - AngularJS 1.3 to 1.4 regression #12870
Open
Description
The currency filter now formats negative numbers with a negative sign, where it previously wrapped the negative number in brackets.
AngularJS 1.3 currency filter:
$scope.filteredNumber = $filter('currency')("-4.962016");
results in ($4.96)
http://plnkr.co/edit/iEkkjw?p=preview
AngularJS 1.4 currency filter:
$scope.filteredNumber = $filter('currency')("-4.962016");
results in -$4.96
http://plnkr.co/edit/3dwKuIHTk9tzGOdZ7Xly?p=preview