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