From 550e2f03ad0b60b3c9db3d68dbf014dcb740a2ff Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Tue, 17 Jan 2017 15:37:25 +0530 Subject: Initial Commit --- src/dashboard/dashboard.js | 20 ++++++++++++++++++++ src/dashboard/dashboard.model.js | 25 +++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 src/dashboard/dashboard.js create mode 100644 src/dashboard/dashboard.model.js (limited to 'src/dashboard') diff --git a/src/dashboard/dashboard.js b/src/dashboard/dashboard.js new file mode 100644 index 0000000..245cdf5 --- /dev/null +++ b/src/dashboard/dashboard.js @@ -0,0 +1,20 @@ +define(['services', 'moment', 'constants', 'dashboard/dashboard.model'], function(_services, moment, CONSTANTS, DASHBOARD_MODEL) { + + + var DASHBOARD_MODULE = { + init: function(){ + console.log("INIT"); + anotherMethod("Kool") + }, + anotherMethod : function() { + console.log("Param ",param); + } + + + }; + + + return DASHBOARD_MODULE; + + +}); diff --git a/src/dashboard/dashboard.model.js b/src/dashboard/dashboard.model.js new file mode 100644 index 0000000..894c684 --- /dev/null +++ b/src/dashboard/dashboard.model.js @@ -0,0 +1,25 @@ +define([], function(){ + + +function DASHBOARD_MODEL() { + this.dashboardData = { + dashboardDetails: [] + }; +} + +DASHBOARD_MODEL.prototype = { + setData: function(data) { + + }, + + getData: function() { + var localData = UTILS.getLocalStorage('dashboardData'); + return localData; + } + +}; + +return DASHBOARD_MODEL; + +}) + -- cgit v1.2.3