AngularJS: Simple Custom Filter

HTML

<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.min.css">
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular-resource.js"></script>
<body ng-app="myApp" >
  <div ng-controller="myCtrl">
  {{rupee}}<br>
  {{rupee1}}<br>
  {{rupee2}}<br>
  {{rupee3}}
  </div>
</body>

JavaScript

var myApp = angular.module('myApp',[]); 
myApp.controller('myCtrl', ['$scope','$filter', function($scope,$filter) {
    $scope.dols = 100;
    $scope.rupee = $filter('currency')($scope.dols * 67.33, "INR", 3);
    $scope.rupee1 = $filter('currency')($scope.dols * 67.33, "&#8377", 3);
    
    //It takes a string parameter, so whatever string you are proving to it will be used to apply currency symbol
    $scope.rupee2 = $filter('currency')($scope.dols * 67.33, '\u20B9', 3);
    
    $scope.rupee3 = $filter('currency')($scope.dols * 67.33, '<b>R</b>', 3);
}]);