Ways to format and sort your data, pretty cool.
{{0.1 | currency : ‘£’ }} = £0.10
{{‘20150613T13:23:30′ | date:’dd/MM/yyyy @ h:mma’ }} = 13/06/2015 @ 1:23PM
{{‘all caps’ | uppercase }} = ALL CAPS
{{‘Really long text’ | limitTo:14 }} = Really long te
<li ng-repeat=”product in store.products | orderBy:’-price’” > = orders the products from most expensive to least expensive. Remove the minus sign to go from cheapest to more expensive.
Leave a Reply