I have this variable ChangeRecord: boolean; .
In this method ngOnInit () , I check whether it is 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.alter Record is true .
I was unable to do this with the disabled option.
How to proceed then?