Arshad Mehmood

Search the blog

    Today I Learned

    Apply two or more pipes

    angular2

    To transforme the data, we can apply multiple pipes. It is called chaining, the same as in method chaining.

    The chained hero's birthday is
    {{ birthday | date | uppercase}}

    This example—which displays FRIDAY, APRIL 15, 1988—chains the same pipes as above, but passes in a parameter to date as well.

    Full tutorial - Chaining pipes