Skip to content

Instantly share code, notes, and snippets.

@christian-fei
Created June 21, 2014 15:05
Show Gist options
  • Save christian-fei/1ea9ebce884ede7828fa to your computer and use it in GitHub Desktop.
Save christian-fei/1ea9ebce884ede7828fa to your computer and use it in GitHub Desktop.
x
(function(){
var app = angular.module('store', []);
app.controller('StoreController', ['$scope', '$http', function($scope, $http) {
$scope.products = [];
$http.get('https://api.github.com/users/christian-fei/repos').success(function(data) {
console.log(data);
$scope.products = data;
});
}]);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment