Percentage filter for angular.js
Install with Bower:
$ bower install angular-percentage-filter
Include the library:
<script src="/bower_components/angular-percentage-filter/percentage.js"></script>
Import it to the angular applicaiton:
angular.module('myApp', ['percentage']);
Use it in the view:
<span>{{ 2/3 | percentage }}</span>
<span>{{ 0.2 | percentage }}</span>
<span>{{ (items | filter:{done: true}).length/items.length | percentage }}</span>