Link to home
Start Free TrialLog in
Avatar of ybt
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"
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial