I have an app with some states.
Each state shows a different custom component.
My problem is that if someone types somthing in one of the states then changes state and then comes back the text will still be there.
Is there a way to reintitialize the custom component on each state chage or do I have to create functions to reset everything myself?
I would reset everything my self. So far I've did not see anything like re-init of data.
You need to manually reset all the fileds in your component to make the component reset...
For clearing the textInputs you need to explicitly set the text property to empty to reset them and so...
Ok, thank you.
Were they only Form fileds it would have been nice and easy.
I have some AMF calls etc.
I could probably remove the component with removeChild and add it when it's accessed again I guess, but that doesn't seem too elegant.