0
I have this variable change Record : Boolean;.
in this method ngOnInit(), I check if it’s a change or not
ngOnInit() { this.empresa = new Empresa; if(this.routaAtual.snapshot.url.length > 1){ let id = this.routaAtual.snapshot.url[1].path; this.alterarRegistro = true; } else { this.alterarRegistro = false; this.titulo = "Cadastrar banco"; } }
I want some components to be inactive when the variable this.alterarRegister for true.
I couldn’t do it with the option disabled.
How then ?
Inside the component in HTML... [disabled]="! change"
– Lucas Brogni
can post the html of this component?
– Eduardo Vargas