I have an HTTP rest call that fetches a number from an endpoint. It will 
sometimes return '-1' to indicate that the number is 'unknown' (it's an 
episode count). Right now, I just use string interpolation? 
{{item.episodes}}?, but this displays a nasty '-1'. How can I get a clean 
'Unknown', the angular way? One obvious way is at fetch time iterate the 
items, and assign all -1's to 'Unknown'. 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to