HomeController.js

angular.module('homepage').
controller('HomeController', function ($scope, DataStoreSrvc, TemplateService) {
	var timelineData = DataStoreSrvc.getPosts();
	var sidebarData = DataStoreSrvc.getSidebarData();
	var widgetsData = DataStoreSrvc.getWidgetsData();

	var data = {
		timeline: timelineData,
		sidebar: sidebarData,
		widgets: widgetsData
	};

	$scope.data = data;

	TemplateService.getTemplates();
});