I am struggling with figuring out what event I can trigger when a component is loaded so certain actions execute. Something similar like “on page load” but for a component. I tried “on mounted” but nothing really happens. I am trying to add inputs inside components and getting initial values, updated values etc outside of the component seems impossible.
as an example I would like to be able to :
- set the variable I created to hold the value of an input to the initial value. Right now the value is empty as it is only set on change
- I want to be able to “clear” a date range input - right now it just resets values to the initial value specified on component level
Thanks!