Skip to content

err-himanshu/GoogleSign-using-Angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Login with google using Angular

use

Download the service file (GoogleService.js) and include in your index.html

inject this service into your controller
Now in your controller like this

app.controller('loginController', function ($scope,$window,$http,GoogleService) { });
call login via google service function     GoogleService.signIn().then(function (response) {         $http.get("https://www.googleapis.com/plus/v1/people/me?access_token="+response.access_token).success(function(data) {           $scope.user = data;           console.log($scope.user);         }).then(function() {         });
Volla !!! check your console

Demo
Don't forget to enable Google+ Api and use your google project client-id

#Thanks

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published