Hello Everyone,
I have a problem that I cannot really wrap my head around.
I am writing a component which displays wraps any kind of data in a specific way. It then applies a function to said data, which can also be specified by the user.
I would like to avoid going too much into detail, unless it helps to solve the question.
The component displays the passed data - 1, data, data + 1.
This is how one would use the component:
<app-data-container [data]="myData" [transformFn]="myTransformationFunction">