Hi

I am trying to compare weekly sales figures, from a JSON file,  and 
indicate with an arrow whether they have gone up or down .

The code is:
    <td>{{ x.ThisWeek }}&nbsp;<img ng-src="{{ x.LastWeek<x.ThisWeek && 
'Images/green.png' || 'Images/red.png'}}"></td>
    <td>{{ x.LastWeek }}&nbsp;<img ng-src="{{ x.Week2<x.LastWeek && 
'Images/green.png' || 'Images/red.png'}}"></td>
    <td>{{ x.Week2 }}&nbsp;<img ng-src="{{ x.Week3<x.Week2 && 
'Images/green.png' || 'Images/red.png'}}"></td>
    <td>{{ x.Week3 }}</td>  


  
but the results are mixed, see attachment, but ultimately wrong. I have 
parsefloat the Week2, Week3, LastWeek and ThisWeek but the results are 
worse.

Any ideas please?

Many Thanks

Rob 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 angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/c1a69d1b-89a8-4a64-8493-9b367f339edcn%40googlegroups.com.

Reply via email to