'use strict';

/* Services */

var splitcoinServices = angular.module('splitcoin.services', ['ngResource']);

// Demonstrate how to register services
// In this case it is a simple value service.
splitcoinServices.factory('Ticker', ['$resource',
    function($resource){
        return $resource('http://blockchain.info/ticker', {}, {
            query: {method:'GET'}
        });
    }
]);
'use strict';

/* Services */

var splitcoinServices = angular.module('splitcoin.services', ['ngResource']);

// Demonstrate how to register services
// In this case it is a simple value service.
splitcoinServices.factory('Ticker', ['$resource',
    function($resource){
        return $resource('/sampledata/ticker.json', {}, {
            query: {method:'GET'}
        });
    }
]);
Use local JSON for dev
Use local JSON for dev
