Explorar o código

Implemented controller for querying top contributed data from Django JSON Response

David Leonard %!s(int64=10) %!d(string=hai) anos
pai
achega
458f0c2396

+ 10 - 0
angular/scripts/controllers/githubTopContributionsController.js

@@ -0,0 +1,10 @@
+'use strict';
+
+restApp.controller('githubTopContributionsController', function($scope, githubTopContributionsFactory) {
+    $scope.githubTopContributions = {};
+    
+    $scope.githubTopContributions = githubTopContributionsFactory.get().success(function(data) {
+    	$scope.githubTopContributions = data;
+    	console.log(data);
+    });
+});