google api - AngularJS with GoogleAPI Services -


i using https://github.com/christiansmith/nggapi services helps me google api services v3 youtube. though have followed instruction. taken dependency well. not working. eg.

angular     .module('app', [         "gapi"     ])   .value('googleapp', {         apikey: 'aizasyam_1trokfngy-xyzabcdegghi',         clientid: 'numbers.apps.googleusercontent.com',         scopes: [             'https://www.googleapis.com/auth/drive',             'https://www.googleapis.com/auth/youtube',             'https://www.googleapis.com/auth/userinfo.profile'         ]     })    .controller('youtubecontroller', ['$scope', 'video', "youtube", "gapi",     function ($scope, video, youtube, gapi) {         gapi.init();         $scope.videos = youtube.search({part: 'snippet', q: 'sample text search'})     }]); 

included google apis link well. giving me error of gapi.app.oauthtoken undefined or sometime gapi.auth undefined please help

i doing on local-server http://localhost:3000/#/


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -