Search code examples
angularpipeform-control

Angular formControlName print error, wrong format


Good day community,

Currently I have the following problem when passing an input value through a pipe, it is assigning the value as it should be, but when I use the formcontrol and try to print the value, it does not print it correctly.

Can someone explain to me why this could happen?

I share the problem that is presented in stackblitz

print error


Solution

  • You can use the same pipe in your ts file to achieve the desired result.

    I have updated your stackblitz