Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "title": "List of Countries",
- "list":[{
- "name": "Singapore",
- "code": "SG"
- },{
- "name": "Thailand",
- "code": "TH"
- }]
- }
- <h2><%=t("list.0.name")%></h2> //working fine
- //using map not working
- <% t("list").map(e=>{%>
- <a href="#"><%=t(e.name)%></a>
- <%})%>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement