I am facing an issue with two functions on my $scope
: getTotal1()
and getTotal2()
.
Interestingly, when I use them individually like this:
<div>{{getTotal1() || 0}}</div> <!-- it works -->
<div>{{getTotal2() || 0}}</div> <!-- it also works -->
<div>Grant total: {{getTotal1() + getTotal2() || 0}} <!-- this is not working -->
I can't seem to figure out why the sum of these two functions isn't displaying. Any ideas what could be causing this issue?
Edit I should note that both of these functions return a positive integer value of 0 or greater.