I have a question about the pipe: Imagine there is pipe which is applied to the field of the reactive form
[value]="form.get(formControlName).value | pipeName”
It works fine the first time the value is set to the form field. Now, there is a process which is syncing the model with a form value. If the form field gets reset with the same value as before - the pipe won't be invoked.
You may say - just don't set the same value to the form again and will be right. Due to some constrains it is hard not to do that so we need to find a solution around it.
Eg: if the view has value ‘112’ the pipe transforms value to '11 2/4'
And when I do this.form.get(formControlName).setValue(‘112’)
the pipe transformation is not applied and the value stays as '112'
After this call pipe won't be executed and the field value will remain raw and not transformed by a pipe logic.
Does this make sense?
[Update #1]
After trying to make the pipe impure it actually makes it invoked with the same input param but then result on the pipe transformation is not applied back to the template.
[Update #2]
Edited the explanation of what I am trying to achieve.