Filters
Currency Filters
by manoj_antony32
HTML
<div ng-app="CurrencyApp" ng-controller="CurrencyController">
<input type="number" ng-model="amount">
<h2>{{ amount | currency: "₹": 0}}</h2>
<!--{{ currency_expression | currency : symbol : fractionSize}}-->
<!--<h2>{{ amount | currency: "₹": 2}}</h2>-->
</div>
JavaScript
var myApp = angular.module('CurrencyApp', []);
myApp.controller("CurrencyController", ['$scope', function($scope) {
$scope.amount = 200;
}]);
//$filter('currency')(amount, symbol, fractionSize)