projects-list.js

angular.module('homepage').
directive('projectsList', function() {
    return {
        restrict: 'E',
        replace: true,
        scope: {
            projects: '=data'
        },
        templateUrl: 'components/content-components/input/projects-list.html'
    };
});