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
This commit is contained in:
Hyzual 2014-10-30 22:29:06 +01:00
parent a2747a633d
commit 3164f01407
14 changed files with 618 additions and 704 deletions

20
js/filters/filters.js Normal file
View file

@ -0,0 +1,20 @@
'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);
};
});