I am dealing with a patch value here where I simply pass an object to it.
this.formPesquisar.controls['daniloTeste'].patchValue(this.dadosVisualizar.daniloTeste);
However, I would like to pass a static object instead, something like:
this.formPesquisar.controls['daniloTeste'].patchValue(2,'OBJETO');
Can anyone guide me on how to achieve this in Angular 9? This is related to form control patch value functionality.