Skip to content

Instantly share code, notes, and snippets.

@codeaholicguy
Created January 14, 2016 08:26
Embed
What would you like to do?
app.controller('StoreController', ['$http', function ($http) {
var store = this;
store.products = [];
$http.get('/products.json').success(function(data){
console.log(data)
});
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment