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

10 views
Skip to first unread message

ahmed elbarbary

unread,
Feb 11, 2020, 4:58:16 AM2/11/20
to Angular and AngularJS discussion
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

check fn application on otherqualification array

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


ahmed elbarbary

unread,
Feb 11, 2020, 4:59:37 AM2/11/20
to Angular and AngularJS discussion
Reply all
Reply to author
Forward
0 new messages