Angular - Sum of with Currency

Angular - Sum of with Currency

HTML

<div ng-app="myApp" ng-controller="costController">

Quantity: <input type="number" ng-model="quantity">
Price: <input type="number" ng-model="price">

<p>Total = {{ (quantity * price) | currency:'EUR':'symbol':'4.2-2':'fr' }}</p>

</div>

JavaScript

angular.module('myApp', []).controller('costController', ['$scope', function($scope) {
    $scope.quantity = 1;
    $scope.price = 5.00;
}]);