title: How to implement SignIn with Google in Angular 2 using Typescript
body: <p>I have been trying to implement sign in with Google in angular 2 in a separate login component. I am unable to implement it with the documentation available in Google <a href="https://developers.google.com/identity/sign-in/web/sign-in" rel="noreferrer">https://developers.google.com/identity/sign-in/web/sign-in</a></p>
  
  <p>Google sign in does work when I declare my script tags and google callback function inside my index.html file. But I require a separate component to be able to render the sign in with google button and receive the callback in it to further process the access token which is received for a user</p>