iam new on angularjs and reading the doc about orderBy , wanting to know how to get the max value on certain column,
like the oldest person is Adam - 35
Name (^) Phone Number Age
Adam 555-5678 35
Julie 555-8765 29
Mike 555-4321 21
Mary 555-9876 19
John 555-1212 10
the example on plunker
does anyone know how to do it?
thank you
orderByis to sort the entries of a collection. It has got nothing to do with finding the max and min values. You either create a custom filter that will give you the max value or simply use regular old javascript to find it yourself.