Having an issue with my navigateToApp
function. In the else condition, I am calling another function called openModalDialog(content)
. Unfortunately, I am encountering an error stating Cannot find name content
. Can someone help me identify what is wrong here? Thanks in advance.
openModalDialog(content) {
this.modalService.open(content, {ariaLabelledBy: 'modal-basic-title'}).result.then((result) => {
this.closeResult = `Closed with: ${result}`;
})
}
navigateToApp = () => {
axios.get('*************').then(function (res) {
if (res.data.message == "Not Found"){
console.log("this condition....")
}
else {
this.openModalDialog(content)
}
});
}