Common.js

angular.module('homepage').
filter('doubledigit', [function() {
	return function (number) {
		if(number < 10) {
			return '0' + number;
		}
		else {
			return number;
		}
	};
}]);