Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
problem

How to access attribute from array based on value exist on attribute ?

I need to access Fn:'Application' inside array of OtherQualification on html angular 7 ?

if it have otherQualification - fn - Application
then print exist
else
not exist from html
I attached file with post thread

I need to loop within object json on file attached below then get value Application for Fn:Application on html

I already have on ts object name objJson have all object below on file

I need to loop on it

on component.html

I need ngfor objJson get otherqualification - fn :application

if exist

then print message exist

else

print message not exist

Result

it will be print Exist according to file attached

because if you check other application array attribute fn :application it already exist on file

so it will print Exist
^]

What I have tried:

objJson : any ;
ngOnInit() {      
 this.objJson="what on file attached";  

}
Posted
Updated 11-Feb-20 0:17am
v5
Comments
ahmed_sa 11-Feb-20 8:47am    
can any one help me please

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900