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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -