Try the following:
HTML
<!doctype html> <html ng-app="App"> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script> <script type="text/javascript" src="script.js"></script> </head> <body> <div ng-controller="Ctrl"> <span>Amount1: {{amount1 | currency:"USD$"}}</span><br/> <span>Symbol2: <input ng-model="symbol2"/></span><br/> <span>Amount2: <input ng-model="amount2"/></span><br/> </div> </body> </html>
Javascript
angular.module('App', []); function Ctrl($scope) { $scope.amount1 = 1234.56; $scope.symbol2 = 'USD$'; $scope.amount2 = '1234.56'; }
Plunger example
If this does not help, check the following: Get the currency format template from the AngularJS filter
source share