AngularJS Directive for Google Plus Sign-in Button
4 people use it
Author: 4950478a2c8a6627004a41b2617948a4? sirkitree

Angular Google Plus Sign-in Button Directive


A good starting place for a Google Plus sign-in button. Specify your client id and you're done. Well, almost. You'll also want a signinCallback() function so you can do something once your users are authenticated.


  1. Include google-plus-signin.js.
  2. Add directive.g+signin as a dependency to your app.
  3. Add <g+signin clientid="your-client-id"> to your app.
  4. Create a signinCallback() function to detect when your users are authenticated.


See the homepage for an example.


♡ CopyHeart 2013 by Jerad Bitner | Copying is an act of love. Please copy.

comments powered by Disqus
This page was last updated almost 5 years ago.