javascript - Reset/Render again element in polymer -
their option in polymer reset element/ custom element original state. render element again?
i want inner variables values delete , element same load page.
thanks
i see ways:
first 1 write 'reset' method resets vars bound ui gets initial state.
the second 1 remove element polymer.dom(parent).removechild , create new 1 of same type document.createelement , put @ old element's place polymer.dom(parent).appendchild/insertbefore.
i'd choose first 1 - seems more testable , confined lement.
Comments
Post a Comment