var images
에 저장된 이미지 목록과 var searchName
에 저장된 이름 목록이 이제는 이름과 함께 이미지를 표시해야하지만 모든 이미지가 표시된 후에 만 표시 할 수 있습니다. .두 테이블을 동일한 테이블에서 처리하기
HTML :
<div class="row col-sm-12" >
<table class="displayImg col-sm-3">
<tr ng-repeat = "image in images">
<td><img ng-src="{{image}}" class="imageShow"/> </td>
</tr>
<tr ng-repeat = "item in searchName">
<td>{{item[0].profileInfo.firstname}} </td>
</tr>
</table>
</div>
이미지와 이름은 다음의 관계가 귀하의 요구 사항에 따라 두 배열을 병합하거나이를 시도하는 경우가있다 : http://stackoverflow.com/questions/30846032/looping-multiple-arrays-simultaneously-with-ng-repeat –
@ Nicoleta - 컨트롤러의 데이터를 병합하여 먼저 준비 할 수 있습니다. 이미지와 항목간에 관계가있는 경우 You ng-repeat-start, ng-repeat-end를 사용해 볼 수도 있습니다. https://docs.angularjs.org/api/ng/directive/ng 답장 – Bhuneshwer
예 이미지와 데이터 사이에 관계가 있으므로이 문서를 살펴볼 것입니다. –