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