"employees":[
{"name":"Hosea", "email":"[email protected]", badge="silver"},
{"name":"javier", "email":"[email protected]" badge="silver"},
{"name":"marston", "email":"[email protected]" badge="Gold"} ,
{"name":"arthur", "email":"[email protected]" badge="Gold"}
]
Is there a way to loop through the array to check whether "badge" with same value exist, in the html using ngIf
or ngFor
?
The result will be like this