Reset / visualize an element in the polymer again

Their version in the polymer is reset element / custom element to its original state. How to make an item again?

I want all the values ​​of the internal variables to be deleted and that the element will look the same as I load the page.

thanks

+4
source share
1 answer

I see ways:

First you need to write a reset method that resets all the vars so that the associated ui gets back to its original state.

, Polymer.dom(parent).removeChild, document.createElement Polymer.dom(parent).appendChild/insertBefore.

- .

0

Source: https://habr.com/ru/post/1611705/


All Articles