lib/factories/service.factory.js
function getResource(serviceInfo, moduleStack) {
        var resourceName = serviceInfo.resourceName;
        var resourcePath = '/resources/' + resourceName + '/' + resourceName + '.resource';
        return this.loadIfExists(resourcePath, moduleStack, 'Could not find resource file');
    }
function getResource(serviceInfo, moduleStack) {
        var resourceName = serviceInfo.resourceName;
        var resourcePath = '/resources/' + resourceName + '/' + resourceName + '.resource';
        return this.loadIfExists(resourcePath, moduleStack, 'Could not find resource file');
    }
function getResource ( serviceInfo , moduleStack ) { var resourceName = serviceInfo . resourceName ; var resourcePath = '/resources/' + resourceName + '/' + resourceName + '.resource' ; return this . loadIfExists ( resourcePath , moduleStack , 'Could not find resource file' ) ; }
Get a resource based on the
@param serviceInfo
@param moduleStack
@returns {{}} A resource object
Get a resource based on the