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

HCL healthcare

 hcl health care f2f second round interview asked more uestions on microservice 1.apim manage all apis in one place 2.sql profiler in one fo...