Skip to content

Instantly share code, notes, and snippets.

/gist:1f571d759dcbafb06c0c Secret
Created Dec 12, 2014

Embed
What would you like to do?
LoansFactory.getLoans().then(function success(response){
var allLoans = response.data.data;
$scope.loans = _.map(allLoans, function(obj){
// true if LoansFactory.getPendingVotes(loan.id) count > 0
obj.need_vote = false;
return obj;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.