Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.78 KB

README.md

File metadata and controls

40 lines (25 loc) · 1.78 KB

Dependancy Injection

Author: Thomas Laforge

Information

To successfully complete this challenge, you will need to have a good understanding of how Dependency Injection works inside Angular.

The goal is to provide the CurrencyService at the row level, so that each row displays the correct currency. Currently, the CurrencyService is only provided at the table level, which results in an error as the same currency is displayed for each row, despite each product having a different currency.

One way to achieve this is by adding a second argument to the pipe, but this is not allowed.

Statement

  • Your task is to display the correct currency for each row.

Constraints:

  • You cannot modify the pipe.
  • You cannot wrap the row inside a component, as this will break the layout.

Submitting your work

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

DI DI solution author

/ You can ask any question on twitter