mood-widget.js

angular.module('homepage').
directive('moodWidget', function () {
    return {
    	controller: 'moodWidgetController',
        restrict: 'E',
        replace: true,
        transclude: true,
        scope: {
        	data: '='
        },
        templateUrl: 'components/feature-components/mood/mood-widget.html'
    };
}).
controller('moodWidgetController', function ($scope) {
    console.log($scope.data);
});