SHARE
TWEET

Untitled

a guest Jun 16th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "title": "List of Countries",
  3.   "list":[{
  4.      "name": "Singapore",
  5.      "code": "SG"
  6.   },{
  7.     "name": "Thailand",
  8.     "code": "TH"
  9.  }]
  10. }
  11.      
  12. <h2><%=t("list.0.name")%></h2> //working fine
  13.  
  14. //using map not working
  15.  
  16. <% t("list").map(e=>{%>
  17.   <a href="#"><%=t(e.name)%></a>
  18. <%})%>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top