Function onLifecycle

  • Will call {mounted} when the element is added to the DOM. And will call {beforeUnmounted} before the element is removed from the DOM. Finally will call {onUnmounted} when the element is removed from the DOM.

    Parameters

    • tag: CTag
    • Optional onMounted: ((tag) => boolean | Promise<boolean>)
        • (tag): boolean | Promise<boolean>
        • Parameters

          Returns boolean | Promise<boolean>

    • Optional onUnmounted: ((tag) => void)
        • (tag): void
        • Parameters

          Returns void

    • Optional beforeUnmounted: ((tag) => boolean | Promise<boolean>)
        • (tag): boolean | Promise<boolean>
        • Parameters

          Returns boolean | Promise<boolean>

    Returns void

Generated using TypeDoc