/* global angular */
var wizardServices = angular.module('wizardServices', ['ngResource']);

wizardServices.factory('Transaction', ['$resource',
    function ($resource) {
        return $resource('transactionData.json');
    }]);

wizardServices.factory('Item', ['$resource',
    function ($resource) {
        return $resource('itemData.json');
    }]);

wizardServices.factory('Customer', ['$resource',
    function ($resource) {
        return $resource('appData.json');
    }]);

wizardServices.factory('State', function () {
    var _state = 'index';

    return {
        get: function () {
            return _state;
        },

        set: function (state) {
            if (state) {
                _state = state;
            }

            return _state;
        }
    };
});

@@ -204,32 +204,119 @@
 actionData.json'
+, null, %7B%0A            'query':  %7B method: 'GET', isArray: true, cache: true %7D%0A        %7D
 );%0A    %7D%5D);%0A%0Awiz
@@ -416,32 +416,119 @@
 ('itemData.json'
+, null, %7B%0A            'query':  %7B method: 'GET', isArray: true, cache: true %7D%0A        %7D
 );%0A    %7D%5D);%0A%0Awiz
@@ -639,16 +639,103 @@
 ta.json'
+, null, %7B%0A            'query':  %7B method: 'GET', isArray: true, cache: true %7D%0A        %7D
 );%0A    %7D

Set service query method to cache data requests.