简体   繁体   中英

Display Object name from Array of Array in Angular

I'm confused on how would i display the categories.name in array of object. I want to display in the first td.

在此处输入图片说明

<tr *ngFor="let innerItem of project.project_services">
    HERE--> <td>{{ innerItem.categories.[name]}</td>
    <td>{{innerItem.service.sku}}</td>
    <td>{{innerItem.service.name}}</td>
</tr>
<tr *ngFor="let innerItem of project.project_services">
    <td *ngFor="let categoryItem of innerItem.categories">{{categoryItem.name}</td>
    <td>{{innerItem.service.sku}}</td>
    <td>{{innerItem.service.name}}</td>
</tr>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM