Pipes

Material for Platform Based Development

Pipes

Pipes are function that you can use in your HTML in order to transform data. They are provided by Angular. The full list of pipes can be found in Angular documentation.

One pipe that we can use is the Date pipe. It allows you to transform a date to any format you want. Let's include it in our members-table.component.html

...
    <td>{{item.birthday | date}}</td>
...

You may remember the json pipe, which converts a Javascript Object (dictionary) into a JSON-string representation.