No result from defer?

Hi guys, why doesn’t my modified query give results?

And / or: how do I access this resp object?

        query: function(params){
                    
                    var actual_params = [];
                    for (var k in params){
                        if (params[k]){
                            actual_params.push(k + '=' + params[k]);
                        }
                    }
                    actual_params = '?'+actual_params.join('&');
                    
                    return $http.get(lesoproepensheetsuURL+'/search'+actual_params).then(function(resp){
                        console.log('serviceresultaat: '+resp.data);
                        return resp.data;
                    });