| 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