google sign-in with angular2 and typescript - where to get gapi?

前端 未结 4 513
南旧
南旧 2021-01-04 06:01

I\'m trying to use google sign-in with angular2 by following this question: Google Sign-In for Websites and Angular 2 using Typescript

But I\'m getting an error:

4条回答
  •  囚心锁ツ
    2021-01-04 06:54

    I also had same problem in Angular v4.0. Removing async defer from the Google platform API script solved my problem

    My Problem was like below when I used Google platform api like :

    
    

    I solved my problem by discarding async defer from Google platform api script as like below in my index.html :

    
    

提交回复
热议问题