{"version":"1.0","type":"rich","title":"Document","description":"This example demonstrates Google sign-in and sign-out functionality using AngularJS. It shows a button that toggles between authentication states, reflecting whether the user is signed in. The code integrates the Google Sign-In API (gapi.auth2) with an AngularJS service wrapper, using promises from $q to handle asynchronous loading and authentication operations. The main controller exposes sign-in and sign-out methods, updating the UI based on the user’s authentication status.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-280dfe615fe57fb0938be24959e56e8e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}