0
votes

I have list of objects.

Data is the list which has Name,Date,ZipCode and ContactDetails. Here ContactDetails is another list which has EmailId.

In the below code, i can get Name,Date and ZipCode. But, i could not able to get the EmailID. Please tell me how to get this.

<a href="#provider" 
  data-eventname="{{:Name}}" data-eventdate="{{:StartDate}}"
  data-zipcode="{{:Zipcode}}" data-email="{{ContactDetails.EmailId}}">
</a>

Data[0].ContactDetails[0].EmailId: I always want ContactDetails[0] index only. So, no need for loop here.

TIA.

1
<a href="#provider" class="open-popup-link" id="providerDetail" data-eventname="{{:Name}}" data-eventdate="{{:StartDate}}" data-zipcode="{{:Zipcode}}" data-email="{{ContactDetails.EmailId}}" > </a> - aaroki
above one is my code. - aaroki

1 Answers

0
votes

You have not got the {{: on the {{ContactDetails.EmailId}}.

It should be {{:ContactDetails.EmailId}}