onMount method

void onMount()

Called when the component is mounted/hydrated in the browser.

Override this method to add interactivity to your component. The shadow DOM will already be rendered (thanks to Declarative Shadow DOM).

Implementation

void onMount() {}