var app = angular .module('kinderspruchComApp'); app.factory('APIConfig', function($rootScope) { return sharedService = {access_token:"e459638ba3c6a06d00ab304a705357a468430680", url: 'http://api.kinderspruch.com'}; });