Code licensed under MIT License.
Allows to use OAuth.io with AngularJS
angular.module('myApp', []).factory('rootCtrl', function($scope, OAuth) {
//initialize OAuth.io with public key of the application
OAuth.initialize('public-key', {
cache: true
});
var authorizationResult;
$scope.connectTwitter = function() {
authorizationResult = OAuth.create("twitter");
};
});
bower install ng-oauthio
It uses Karma to ensure the quality of the code. The easiest way to run these checks is to use grunt:
npm install -g grunt-cli
npm install
grunt karma