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

前端 未结 4 506
南旧
南旧 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:59

    I solved the issue by calling the following script in index.html

    
    

    Note:

    Use the following script without async defer:

     
    

    and use async defer in this script

    
    

提交回复
热议问题