Hi,

I want to fetch data through ajax for all items in a list. For the same, I 
want to use filters.
But somehow, filter is not working, as it doesn't wait for callback to 
finish. Here is the code, any help would be greatly appreciated.

ojp.filter('fetch_brief', function($filter, $http){
return function(input){

$http({
method:'POST',
url:'/touch/srvc/profiles.php?n&u='+input,
data:$.param( {
} ),
headers : {'Content-Type': 'application/x-www-form-urlencoded'}  

}).then(function(resp) {
return brf = resp.data.n;

  });

  
}
});


TIA

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to