modify data from iron-ajax before putting in dom-repeat
23 views
Skip to first unread message
total...@gmail.com
unread,
May 11, 2017, 9:31:33 AM5/11/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Polymer
Hello, i send an ajax request and get data from server. But before that data going to dom-repeat i want modify items.date. the date come in timestamp format, but i want modify to normal. How i do this? Thank you.
John Teague
unread,
May 12, 2017, 8:44:29 AM5/12/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Polymer
Polymer seeks to be agnostic about such things. For date/time I'd recommend https://momentjs.com/ which is a robust project. But there are a ton of examples out there in how to do that achieve that.