this.Auth.getUserDetails(firstname, lastname,contact,emailid,adminemail,pwd)
.subscribe((response) =>{
console.log(response);
if(response.success===1){
console.log(response);
setTimeout (()=>{
document.getElementById('form-content').innerHTML='<p style="font-family: \'Montserrat\', sans-serif; font-size: x-large;color: blanchedalmond;padding-left: 350px;">You have been succesfully registered.</p>';
},
3000);
// localStorage.setItem('jwt_token',JSON.stringify(response));
}else{
alert('invalid user');
}
})
My settimeout function is displaying the html set in the above function, but it is not going out. It becomes fixed.
Thanks in advance