보기에 표시하려는 방법에 따라 다릅니다.
배열의 배열이 있습니다. 따라서 Estanteria 2
HTML 에 표시 하려면 다음과 같이 작동합니다.
<div *ngFor="let item of array">
<!-- this will show Estanteria 2 -->
<div>{{ item[3] }}</div>
</div>
두 번째 배열의 모든 값을 반복하려면 다음을 수행 할 수 있습니다.
<div *ngFor="let item of array">
<!-- this will show all the values in the second array -->
<div *ngFor="let value of item">{{ value }}</div>
</div>
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다