Files
angular-challenges/apps/pipe-hard/README.md
2023-06-19 22:09:54 +02:00

1.7 KiB

Strongly typed 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 third exercice, you want to access utils functions. Currently we cannot access them directly from your template. The goal is to create a specific pipe for this utils file where you will need to pass the name of the function you want to call and the needed arguments.

Constraints:

  • must be strongly typed

Submitting your work

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

Strongly Typed pipe Strongly Typed pipe solution author

You can ask any question on twitter