sirkitree / angular-directive.g-signin

:triangular_ruler: AngularJS Directive for Google Plus Sign-in Button
http://jeradbitner.com/angular-directive.g-signin/
148 stars 84 forks source link

adds support for custom g+ markup #22

Closed Gahen closed 9 years ago

Gahen commented 10 years ago

It changes the way it adds g+ signup behaviour so we can have custom buttons and a bit more of control over it.

farhanbashir commented 10 years ago

please help me in this. I am unable to do this. can you share one example

farhanbashir commented 10 years ago

linker in undefined in your code

Gahen commented 10 years ago

Here you have a "working" example: http://plnkr.co/edit/Nv55zq5MBgMonDJoihSq Bear in mind that for g+ signin to work you'll need a valid g+ id and the right domain for it (the same you registered it with).

Gahen commented 10 years ago

and then listening to

$scope.$on('event:google-plus-signin-success', function (event,authResult) {
    // Send login to server or save into cookie
  });
  $scope.$on('event:google-plus-signin-failure', function (event,authResult) {
    // Auth failure or signout detected
  });
farhanbashir commented 10 years ago

thanks man.

varyoo commented 10 years ago

Awesome bro, thanks! Please merge.

cmichaelis commented 9 years ago

Gets my thumbs up as well, just tried it and it works flawlessly. Thanks!

sirkitree commented 9 years ago

Thanks for all the testing, and for your patience. Merging!