Files
angular-challenges/apps/pipe-intermediate/README.md
2022-11-28 14:44:23 +01:00

1.7 KiB

WrapFn pipe

Author: Thomas Laforge

The goal of this serie of 3 pipe challenges is to master PIPES in Angular.

Pure pipe are a very useful way to transform data from your template. The difference between calling a function and a pipe is that pure pire are memoized. So they won't be recalculated every change detection cycle if the inputs hasn't changed.

Information:

In this second exercice, you add calling multiple functions inside your template. You can create a pipe for each of this function but this will be a bit too much to create that much specific pipe. The goal is to create a wrapFn pipe to wrap your function calls though a pipe.

Constraints:

  • must be strongly typed

Submitting your work

  1. Fork the project
  2. clone it
  3. npm install
  4. nx serve pipe-intermediate
  5. ...work on it
  6. Commit your work
  7. Submit a PR with a title beginning with Answer:9 that I will review and other dev can review.

WrapFn pipe

You can ask any question on twitter