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