Angular2 pipevalue format with tubes

how can i use value format using form contoller patchvalue?

when i use ngModel i use value format like this

[ngModel]="policyModel?.amendmentDate | date : 'yyyy-MM-dd'"

now i remove ngModel and use formcontroller and use patchvalue value to set values

 this.policyForm
            .patchValue({

            AmendmentDate: this.policyModel.amendmentDate, 
  })

since i can format this date - changementDate

0
source share

Source: https://habr.com/ru/post/1651604/


All Articles