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