Skip to content

Instantly share code, notes, and snippets.

@sanchesfranklin
Last active October 11, 2022 01:00
Show Gist options
  • Save sanchesfranklin/a54d4c3bb33ce5b4e6d29989418e559f to your computer and use it in GitHub Desktop.
Save sanchesfranklin/a54d4c3bb33ce5b4e6d29989418e559f to your computer and use it in GitHub Desktop.
funcao_retirarNulls_formReativo_Angular
retiraCamposNullForm(){
Object.keys(this.formIntegracao.controls).forEach(el =>{
if (this.formIntegracao.controls[el].value === null){
this.formIntegracao.controls[el].disable();
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment