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

update scope after event fires #21

Open salam0smy opened 10 years ago

salam0smy commented 10 years ago

when scope variable is modified inside the events: 'event:google-plus-signin-success' and 'event:google-plus-signin-failure', changes are not not detected, therefore, the view does not get updated.

you need to call $rootScope.$apply();

at the end of each event