Our ordinal filter will return a new value with the correct suffix to the number value passed into the filter.
Creating a custom filter (pipe) in Angular 2
Filters essentially are just functions, that accept a single value, or collection, and return a new value or collection based on that filter's responsibility.
const ordinal = () => { // passing another argument return ( value , anotherValue ) => { // do something with `value` and `anotherValue` // and return a new value }; }; angular .
To use the above ordinal filter, all we need to do is use the pipe character inside our expression.
PV Sindhu Pictures Will Make You Fall In Love With Her Little More
The entry was posted in ENERTAINMENT and tagged in Best women of India , Indian Players , Indian Women , Indian Women Won at Olypics , Influential Women Of India , Pullela Gopichand , Pv Sindhu , Pv Sindhu Caste , PV Sindhu Family , PV Sindhu Olympic Silver , PV Sindhu Photos , PV Sindhu Pictures , PV Sinfhu photos , Unseen photos of PV sindhu .
Our Star of the year "PV Sindhu" has become the new pride of Indian people worldwide.
I have been featured in a reality TV series for NDTV India.