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