Wednesday, 14 April 2021

Angular data bind

 


signIn(provider) {
    this._auth.login(provider).subscribe(
      (data) => {
        console.log(data);
        this.hideForm = false;

        this.emaill = data.email;
        this.nom = data.last_name;
        this.prenom = data.first_name;
        this.profileImage = data.image;
    })
}
 error TS2339: Property 'email' does not exist on type 'Object'.
solution: Replace (data) with (data : any)


1 comment:

  1. https://medium.com/@oojhaajay/new-way-to-build-dynamic-reactive-form-in-angular-c50978c66d99

    angular dynamic forms example

    ReplyDelete

7 Common mistakes in Dot Net — You can avoid

  There are many common mistakes made during .NET (ASP.NET, .NET Core) development, which affect performance, security, and code… Code Crack...