/* Filters */
angular.module('myApp.filters').filter('interpolate', function(version) {
    'use strict';

    return function(text) {
        return String(text).replace(/\%VERSION\%/mg, version);
    };
}).filter('percent', function() {
    'use strict';

    return function(number) {
        if (typeof number != 'number') {
            return "";
        }
        var value = number * 100;
        return Math.round(value * 10) / 10;
    };
}).filter('integer', function() {
    'use strict';

    return function(number) {
        if (typeof number != 'number') {
            return "";
        }

        return Math.round(number);
    };
}).filter('capital', function() {
    'use strict';

    return function(text) {

        if (text.length > 0) {
            return text.charAt(0).toUpperCase() + text.slice(1);
        }

        return text;
    };
})
;

/* Filters */
angular.module('myApp.filters').filter('interpolate', function(version) {
    'use strict';

    return function(text) {
        return String(text).replace(/\%VERSION\%/mg, version);
    };
}).filter('percent', function() {
    'use strict';

    return function(number) {
        if (typeof number != 'number') {
            return "";
        }
        var value = number * 100;
        return Math.round(value * 10) / 10;
    };
}).filter('integer', function() {
    'use strict';

    return function(number) {
        if (typeof number != 'number') {
            return "";
        }

        return Math.round(number);
    };
}).filter('capital', function() {
    'use strict';

    return function(text) {

        if (text) {
            return text.charAt(0).toUpperCase() + text.slice(1);
        }

        return text;
    };
})
;

Correct but on Capital filter
Correct but on Capital filter
