Hi
I am trying to compare the weekly revenue figures and show, via an up or
down arrow, whether they have increased or decreased.
The code line is:
<td>{{ x.ThisWeek }} <img ng-src="{{ x.LastWeek<x.ThisWeek &&
'Images/green.png' || 'Images/red.png'}}"></td>
<td>{{ x.LastWeek }} <img ng-src="{{ x.Week2<x.LastWeek &&
'Images/green.png' || 'Images/red.png'}}"></td>
<td>{{ x.Week2 }} <img ng-src="{{ x.Week3<x.Week2 &&
'Images/green.png' || 'Images/red.png'}}"></td>
The results are mixed, see attachment (errors in yellow), but ultimately
wrong. I have tried parsefloat for the week values but the results are
worse.
[image: Capture.PNG]
Any pointers for an Angularjs beginner would be appreciated.
Many Thansk
Robert Bee
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/angular/3ea4d99d-ac40-41e0-a741-88ce8058359an%40googlegroups.com.