File size: 1,257 Bytes
cbc76af | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | /**
* @ngdoc service
* @name AQ.factory:data
*
* @description
* Factory stores retrieved data.
*/
AQ.factory('data', function () {
'use strict';
var data = {};
/**
* @ngdoc property
* @name AQ.factory:data#authentication
* @propertyOf AQ.factory:data
* @type {Object}
*
* @description
* Returned from the API authentication object.
*/
data.authentication = {};
/**
* @ngdoc property
* @name AQ.factory:data#locations
* @propertyOf AQ.factory:data
* @type {Object}
*
* @description
* Returned from the API locations object.
*/
data.locations = null;
/**
* @ngdoc property
* @name AQ.factory:data#location
* @propertyOf AQ.factory:data
* @type {Object}
*
* @description
* Single location.
*/
data.location = null;
/**
* @ngdoc property
* @name AQ.factory:data#projects
* @propertyOf AQ.factory:data
* @type {Object}
*
* @description
* Returned from the API projects object.
*/
data.projects = null;
/**
* @ngdoc property
* @name AQ.factory:data#unsynced
* @propertyOf AQ.factory:data
* @type {Object}
*
* @description
* All unsynced data.
*/
data.unsynced = {
locations: []
};
return data;
});
|