JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app='myApp' ng-controller="Main">
<span ng-bind="amount"></span> <span ng-repeat="n in [] | range:repeatCount">£</span>
</div>
JavaScript
var myApp = angular.module('myApp', []);
myApp.filter('range', function() {
return function(input, total) {
total = parseInt(total);
for (var i=0; i<total; i++)
input.push(i);
return input;
};
});
function Main($scope){
// number of times to repeat
$scope.repeatCount = 2;
$scope.amount = 12.15;
}