'use strict';

/*
 *  A service for persisting temporary widget data between controllers, for example when creating new widget from dashboard -> alert creation view
 */

dashboardApp.factory('widgetService', function() {
	var widgetData = {};

	return {
		saveWidgetData: function(data) {
			widgetData = data;
		},
		getWidgetData: function() {
			return widgetData;
		}
	}
});