Skip to content

zgohr/angular-github-adapter

 
 

Repository files navigation

angular-github-adapter

Angular adapter module for github.js

Full API: Github.js

Quick Start

Install adapter via bower:

$ bower install angular-github-adapter

Declare it as dependency in your app:

angular.module('myApp', ['pascalprecht.github-adapter']);

Use the $githubProvider to configure the service:

angular.module('myApp').config(function ($githubProvider) {
  $githubProvider.username('YOUR_USERNAME');
  $githubProvider.password('YOU_PASSWORD');
  $githubProvider.authType('basic');
});

Now you can access $github service within your controller and services. It provides the same API as Github.js, just with promises :)

About

Angular adapter module for github.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%