AngularJS - how to display colors from $http JSON rows -


image

hi everybody, need display product colors , image in html using angularjs. data obtained used $http service json data. example of template should like.

// produit couleurs controller specapp.controller("produit_couleurs_imagescontroller", ["$scope", "$http", function ($scope, $http){     $scope.error_message = function (response){         $scope.produit_couleurs_images_error = "status: "+response.status+" | status text: "+response.statustext;     }     $http.get("php/json/produit_couleurs_images.php").then(         function (response){             if (response.data.produit_couleurs_images){                 $scope.produit_couleurs_images = response.data.produit_couleurs_images;             }else{                 $scope.error_message(response);             }         },         function (response){             $scope.error_message(response);         }     ); }]); 
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script> 


Comments