onblurRePass(event:any){
this.valOfRePass = this.empProperties.repassword;
console.log("Pass Val: "+this.valOfPass + " RePass Val: "+this.valOfRePass);
if(this.valOfPass == this.valOfRePass){
this.matchPassword = 'matched';
this.addForm.status = 'VALID'; // need to change this status
}
else{
this.matchPassword = 'unmatched';
this.addForm.status = 'INVALID'; //need to change this status
}
}
Error: Cannot assign to 'status' because it is a read-only property.ts(2540)