Angular Google Plus Sign-in Directive


  1. Include google-plus-signin.js.
  2. Add directive.g+signin as a dependency to your app.
  3. Add <google-plus-signin clientid="your-client-id">.
  4. Create a listener on your $scope for event:google-plus-signin-success to detect successful authentication. Sample in the README.
  5. Optional: Listen for event:google-plus-signin-failure to handle authentication errors and signouts.

In action

^ This is a Google Plus sign-in button

<div ng-app="directive.g+signin">
  <google-plus-signin clientid="620125449078"></google-plus-signin>
  <p>^ This is a Google Plus sign-in button</p>

Fork me on GitHub