Jamstash/js/filters/filters.js
Hyzual 3164f01407 Further separates services, directives and filters into individual files for a better organization.
Conflicts:
	js/app.js
	js/service.js
	js/services/utils-service.js
	test/services/model-service_test.js
2014-11-09 15:57:48 +01:00

20 lines
No EOL
540 B
JavaScript

'use strict';
var jamstash = angular.module('JamStash');
/* Filters */
jamstash.filter('capitalize', function () {
return function (input, scope) {
return input.substring(0, 1).toUpperCase() + input.substring(1);
};
});
jamstash.filter('musicfolder', function () {
return function (items, scope) {
return items.slice(1, items.length);
};
});
jamstash.filter('capitalize', function () {
return function (input, scope) {
return input.substring(0, 1).toUpperCase() + input.substring(1);
};
});