< Back to AngularJS, Coding

Angular Filters

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.

View Demo

Download Demo

Leave a Reply

Your email address will not be published. Required fields are marked *