Skip to content

Commit

Permalink
AngularJs app
Browse files Browse the repository at this point in the history
  • Loading branch information
raylight75 committed Feb 25, 2016
1 parent ee3fbe4 commit 57fee69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/productCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ myApp.controller('productCtrl', function ($scope, $http) {
function fetch() {
$http.get("api").then(function (response) {
console.log(response);
$scope.items = response.data.data;
$scope.items = response.data;
$scope.orderProp = 'product_id';
$scope.latest = 6;
});
Expand Down

0 comments on commit 57fee69

Please sign in to comment.