There is a table that retrieves row amounts and I need to determine the minimum amount in that row. However, when using this code I keep getting vm.MinimumAmount as nan.
<td ng-repeat="total in vm.Totals" ng-init="vm.minAmount(vm.Totals)" >{{total.Total | currency}} </td>
function minAmount(totalarray) {
vm.MinimumAmount = Math.min(totalarray)
}