🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

angular-googleplus

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-googleplus

A angular module which handles the login with the Google+ API

0.1.8
latest
Source
npm
Version published
Weekly downloads
9
125%
Maintainers
1
Weekly downloads
 
Created
Source

angular-google-plus

Build Status npm version Bower version

A angular module which handles the login with the Google+ API

Demo

Try this demo. Remind that there is no API Key and Client ID inserted

Install

Install the angular module with bower or npm.

$ bower install angular-google-plus
$ npm install angular-google-plus

Usage

var app = angular.module('app', ['googleplus']);

app.config(['GooglePlusProvider', function(GooglePlusProvider) {
     GooglePlusProvider.init({
        clientId: 'YOUR_CLIENT_ID',
        apiKey: 'YOUR_API_KEY'
     });
}]);

app.controller('AuthCtrl', ['$scope', 'GooglePlus', function ($scope, GooglePlus) {
    $scope.login = function () {
        GooglePlus.login().then(function (authResult) {
            console.log(authResult);

            GooglePlus.getUser().then(function (user) {
                console.log(user);
            });
        }, function (err) {
            console.log(err);
        });
    };
}]);

Credits

  • Insperation from jakemmarsh's gist

Keywords

google

FAQs

Package last updated on 22 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts