How to call attached() callback in polymer programmatically?

147 Views Asked by At

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?

1

There are 1 best solutions below

0
Dificilcoder On BEST ANSWER

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.