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
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
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.
Reply all
Reply to author
Forward
0 new messages