0
I have my HTML:
<form class="needs-validation" novalidate [formGroup]="form">
<div class="form-row">
<div class="col-md-4 mb-3">
<label for="nome">Nome</label>
<input matInput type="text" class="form-control"
id="nome" formControlName="nome" />
<app-campo-control-erro [control]="form.get('nome')"
label="Nome">
</app-campo-control-erro>
</div>
however in input
one disabled=isMaps
, does not work, how to disable the input
?. (Angular Version 8.0).
controller:
if(diretorio.nome == "Mapas") {
this.isMaps = true;
}
If you’re using a reactive form, you wouldn’t have to validate it on the TS?!
– LeAndrade