polymerpolymer-1.0lifecycle

How to call attached() callback in polymer programmatically?


I have multiple polymer components. Inside attached callback of each component, I perform variable initialization and function definition.

Based on a button click, I want to re-initialize variables of all components(inside attached callback) without restarting/refreshing.

Is it possible to call attached callback programmatically or using any events which don't reload the page?

How to call the attached callback programmatically event after the component is attached to DOM?


Solution

  • I haven't found a way to call the attached function in polymer, but as mentioned by @Kuba Simonovsky, we can use another function to call whenever wanted.