I'm new to web development and I'm trying to integrate Google+ signin to my web app using Angular JS. Google documentation suggests that we use following div element to call the google api after signin.
<div class="g-signin2" data-onsuccess="onSignIn" data-theme="dark"></div>
But since I use Angular JS, I do not know how to invoke onSignIn function because I plan to use ng-click to invoke the function. Can someone help me with a solution for this.