Im trying to access this json data using ng-repeat in angular. But I data does not come to the view.
<div class="panel-body" ng-repeat="product in Brands track by $index">
<label>{{product.ID}}</label>
<label style="margin-right: 10px;">{{product.Name}}</label>
<input type="checkbox" ng-model="formData.Selected" ng-true-value='"Y"'
ng-false-value='"N"' value="{{product.Name}}" style="margin-right: 10px;" cd-true-value="'{{product.ID}}'" cd-false-value="'None'" />
This is a part of json data
Object {SelectFromDate: Thu Apr 07 2016 00:00:00 GMT+0530 , ToDate: Fri Apr 15 2016 00:00:00 GMT+0530 , Selected: "1"}
{"data":[{"ID":1,"BrandID":1,"ProductID":1,"Name":"***","Created":"****"},{"ID":2,"BrandID":2,"ProductID":1,"Name":"***","Created":"****"},{"ID":3,"BrandID":3,"ProductID":1,"Name":"***","Created":"****"},{"ID":4,"BrandID":4,"ProductID":1,"Name":"***","Created":"****""}, {"ID":5,"BrandID":5,"ProductID":1,"Name":"***","Created":"****"},
this is the controller
$scope.submit = function() {
console.log($scope.formData);
angularService.PostAngularFormData($scope.formData).then(function (response) {
$scope.Brands = JSON.stringify(response);
console.log($scope.Brands);
});