With the use of ng-repeat, I was able to append the values from a JSON array. However, I encountered an issue with the pictureURLS object containing string values of images. My goal is to separate the string values in pictureURLS and display the images individually.
Javascript
var results= [
{
"title": Album1,
"pictureURLS": "pirul.jpg,picurl2.jpg,picurl3.jpg",
"ApprovalStatus": "2",
},
{
"title": Album2,
"pictureURLS": "pirul.jpg,picurl2.jpg,picurl3.jpg",
"ApprovalStatus": "2",
},
{
"title": Album3,
"AlbumPictureURLS": null,
"ApprovalStatus": "2",
]
HTML
<div ng-repeat="photo in results">
<h4>{{photo.title}}</h4>
<img src="{{photo.pictureURLS}}" />
</div>