Hello guys I have problem..Actually I dont know hot to access some datas in json with angularjs. I just learning angularjs.
<div ng-controller="KurumsalYonetimCtrl">
<p>{{model | json}}</p>
<div ng-repeat="item in model">
<p>{{item.Id}}</p>
<p>{{item.Baslik}}</p>
<p>{{item.Aciklama}}</p>
<p>{{item.ResimYolu}}</p> /*This is PicturePath but it doesnt show*/
</div>
</div>
AngularJS Controller Code
var app = angular.module('KurumsalYonetimController', []);
app.controller('KurumsalYonetimCtrl', ['$scope', '$http', function ($scope, $http) {
$scope.model = {};
$http.get('/KUN/KurumsalYonetim/JsonListele').success(function (data) {
$scope.model = data;
});
}]);
JSON DATA
[
{
"Pictures": [
{
"history": null,
"landTransportation": null,
"partialManagment": null,
"projectTransportation": null,
"userDetail": null,
"Baslik": "Hakkimizda Resim",
"Kategori": "Genel",
"Aciklama": null,
"ResimYolu": "1b066060-d230-45d7-a7ed-fc87bf3bd7d1_profile_avatar.jpg",
"aboutUsId": 5,
"historyId": null,
"landTransportationId": null,
"projectTransportationId": null,
"partialManagmentId": null,
"userDetailId": null,
"Id": 5,
"isDeleted": false,
"CreatedDate": "2015-07-09T02:02:44.473",
"UpdatedDate": "2015-07-09T02:02:44.473",
"hasPicture": false
}
],
"userDetail": null,
"Baslik": "deneme baslik",
"Aciklama": "deneme aciklama",
"userDetailId": null,
"Id": 5,
"isDeleted": false,
"CreatedDate": "2015-07-09T02:02:44.16",
"UpdatedDate": "2015-07-09T02:02:44.553",
"hasPicture": true
}
]
I cant access Pictures in this json result, but i can access these datas.How can I access also Pictures
"userDetail": null,
"Baslik": "deneme baslik",
"Aciklama": "deneme aciklama",
"userDetailId": null,
"Id": 5,
"isDeleted": false,
"CreatedDate": "2015-07-09T02:02:44.16",
"UpdatedDate": "2015-07-09T02:02:44.553",
"hasPicture": true
}