ProjectText.js

angular.module('homepage').
filter('projecttext', function() {
	return function(project) {
        var result = '';
        if(project.projectName) {
            result += project.projectName + ' | ';
        }

        if(project.startDate && project.endDate) {
            result += project.startDate + ' to ' + project.endDate;
        }
        return result;
	};
});