ybt
asked on
ERROR TypeError: Cannot read property 'find' of undefined
Need to check if email exist in database.
Wrote method:
public Emailcheck(email: string )
{
this._contactsService
.find(email).subscribe(contact => {if (contact.Email) {
alert("Exist");
}
});
}
_contactsService => Service page
contact => Model
email => parameter with email address to test
And got error
and got error "Cannot read property 'find' of undefined"
Wrote method:
public Emailcheck(email: string )
{
this._contactsService
.find(email).subscribe(contact => {if (contact.Email) {
alert("Exist");
}
});
}
_contactsService => Service page
contact => Model
email => parameter with email address to test
And got error
and got error "Cannot read property 'find' of undefined"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.