Hi
How to get phone no details on basis of Phone Type using Angular 17
this.fatherData = this.record.caregivers.find((c:any) => c.caregiverType === 'FATHER');
fatherData has below data returned.
address : {id: '8fa4f1c7-b813-4a5a-bb56-ad239940f1fc', effectiveFrom: null, deletedAt: null, createdAt: '2024-07-17T13:11:40.575137Z', updatedAt: null, …} addressId : "8fa4f1c7-b813-4a5a-bb56-ad239940f1fc" branchId : "ae8e930b-0d60-4cb7-8c39-ce953b036e81" branchName : "Main Branch" caregiverType : "FATHER" createdAt : "2024-07-17T13:11:40.575727Z" createdBy : "vishal.singhal" dateOfBirth : "1984-11-10" deletedAt : null department : "" effectiveFrom : null emailDetails : [{…}] firstName : "Dharam" fullName : "Dharam Deol" hasCustody : false id : "5e0963c9-8e99-4431-b4d8-465b486ea3e1" lastName : "Deol" middleName : "" occupationId : "cf12688c-6e4e-42cc-8773-5dd159185448" occupationName : "Engineer" phoneDetails : [{…}] qualificationId : "2187934f-4644-4548-891e-4542121d9249" relationship : null salutationId : "f98d8cc5-b887-4a36-9cfc-e60fed8e1846" salutationName : "Mr." specialization : "" studentIds : null updatedAt : null updatedBy : null yearlyIncome : "6-8 lakh"
Thanks