Angular Filters

Posted on

in

,

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 *

About me

Mark Wong is a front end developer with 10+ years experience. Most of his knowledge of HTML5, CSS and Js is self taught.

Calendar

March 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031