calendar-panel.js
angular.module('homepage').
directive('calendarPanel', function () {
return {
controller: 'calendarPanelController',
restrict: 'E',
replace: true,
scope: {
calendar: '='
},
templateUrl: 'components/feature-components/calendar/calendar-panel.html'
}
}).
controller('calendarPanelController', function ($scope, $timeout) {
// Repeat module default params
$scope.calendar.defaults = {repeat: 'ONCE'};
});