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

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

    Have you included the Google platform API script?

    
    

    See this question for instructions on how to wait for the GAPI script to load before executing your code.

提交回复
热议问题