ng-gapi-loader

AngularJS module with helper methods that load Google Client library & custom API's

Added by: Sam Deering

GitHub

Repository

rise-vision/ng-gapi-loader

Stats

Stars: 0

Watchers: 0

Forks: 1

Author

Rise Vision
Rise Vision

Module Description

ng-gapi-loader Circle CI

Introduction

An AngularJS-based client module that is responsible for making API calls to the Rise Vision Core API.

Built With

Usage

angular.module('myapp', ['risevision.common.gapi'])
   .factory('customGoogleClientLoader', ["gapiLoader", function (gapiLoader) {
     return gapiClientLoaderGenerator("custom", "v2");
   }])

   .service('myService', ['customGoogleClientLoader',
     function(customGoogleClientLoader) {
       customGoogleClientLoader().then(function (customLib) {
         //customLib is equivalent to window.gapi.client.custom
         customLib.somemethod(..., function () { //callback });
       })
   }]);
angular.module('myapp', ['risevision.common.gapi'])

   .service('myService2', ['gapiLoader',
     function(gapiLoader) {
       //...
       gapiLoader().then(function (gApi) {
         //gApi === window.gapi
       });
       //...
   }]);

Testing

npm run test

Submitting Issues

If you encounter problems or find defects we really want to hear about them. If you could take the time to add them as issues to this Repository it would be most appreciated. When reporting issues please use the following format where applicable:

Reproduction Steps

  1. did this
  2. then that
  3. followed by this (screenshots / video captures always help)

Expected Results

What you expected to happen.

Actual Results

What actually happened. (screenshots / video captures always help)

Contributing

All contributions are greatly appreciated and welcome! If you would first like to sound out your contribution ideas please post your thoughts to our community, otherwise submit a pull request and we will do our best to incorporate it

Resources

If you have any questions or problems please don't hesitate to join our lively and responsive community at http://community.risevision.com.

If you are looking for user documentation on Rise Vision please see http://www.risevision.com/help/users/

If you would like more information on developing applications for Rise Vision please visit http://www.risevision.com/help/developers/.

Facilitator

Xiyang Chen

Module stats last updated: 2015-04-19 02:04:38

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!