第一个数组数据:
[
{ FirstName: "John", lastName: "Doe", Value: 46 },
{ FirstName: "Jack", lastName: "Smith", Value: 53 },
{ FirstName: "James", lastName: "Bhal", Value: true }
]
第二个数组舞会:
[
{ Label: "Ram", Key: "ram", Value: 46 },
{ Label: "Rom", Key: "rom", Value: 46 },
{ Label: "Mouse", Key: "mouse", Value: 46 }
]
如果第一个数组中的第三个对象值为假,如何在第二个数组中显示两个对象,如果第一个数组值中的第三个对象在角度 6 html 中为真,如何显示第二个数组中的所有对象。尝试使用*ngFor和*ngIf