Class HelloWorld

Custom vue component defined with defineComponent

Hierarchy

  • HelloWorld

Properties

$: ComponentInternalInstance
$attrs: Data
$data: {
    color: string;
    counterStore: PiniaStore<useCounterStore>;
}

Type declaration

$el: any
$emit: ((event, ...args) => void)

Type declaration

    • (event, ...args): void
    • Parameters

      • event: string
      • Rest ...args: any[]

      Returns void

$forceUpdate: (() => void)

Type declaration

    • (): void
    • Returns void

$nextTick: (<T>(this, fn?) => Promise<void>)

Type declaration

    • <T>(this, fn?): Promise<void>
    • Type Parameters

      • T = void

      Parameters

      • this: T
      • Optional fn: ((this) => void)
          • (this): void
          • Parameters

            • this: T

            Returns void

      Returns Promise<void>

$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
    excited: BooleanConstructor;
    name: {
        default: string;
        required: true;
        type: StringConstructor;
    };
}>>, unknown, {
    color: string;
    counterStore: PiniaStore<useCounterStore>;
}, {
    greeting() => string;
}, {
    setColor(color) => void;
}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
    excited: boolean;
    name: string;
}, {}, string, {}> & MergedComponentOptionsOverride
$parent: null | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>
$pinia: Pinia

Access to the application's Pinia

$props: {
    class?: unknown;
    excited?: boolean;
    key?: string | number | symbol;
    name?: string;
    onVnodeBeforeMount?: VNodeMountHook | VNodeMountHook[];
    onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[];
    onVnodeBeforeUpdate?: VNodeUpdateHook | VNodeUpdateHook[];
    onVnodeMounted?: VNodeMountHook | VNodeMountHook[];
    onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[];
    onVnodeUpdated?: VNodeUpdateHook | VNodeUpdateHook[];
    ref?: VNodeRef;
    ref_for?: boolean;
    ref_key?: string;
    style?: unknown;
}

Type declaration

  • Optional class?: unknown
  • Optional excited?: boolean

    Whether to greet the user excitedly

  • Optional key?: string | number | symbol
  • Optional name?: string

    Docs on name

  • Optional onVnodeBeforeMount?: VNodeMountHook | VNodeMountHook[]
  • Optional onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[]
  • Optional onVnodeBeforeUpdate?: VNodeUpdateHook | VNodeUpdateHook[]
  • Optional onVnodeMounted?: VNodeMountHook | VNodeMountHook[]
  • Optional onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[]
  • Optional onVnodeUpdated?: VNodeUpdateHook | VNodeUpdateHook[]
  • Optional ref?: VNodeRef
  • Optional ref_for?: boolean
  • Optional ref_key?: string
  • Optional style?: unknown
$refs: Data
$root: null | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>
$slots: Readonly<InternalSlots>
_pStores?: Record<string, StoreGeneric>

Cache of stores instantiated by the current instance. Used by devtools to list currently used stores. Used internally by Pinia.

color: string = "green"
counterStore: PiniaStore<useCounterStore>
excited: boolean = Boolean

Whether to greet the user excitedly

name: string = ...

Docs on name

Methods

  • Type Parameters

    • T extends string | ((...args) => any)

    Parameters

    • source: T
    • cb: T extends ((...args) => R)
          ? ((...args) => any)
          : ((...args) => any)
    • Optional options: WatchOptions<boolean>

    Returns WatchStopHandle

greeting

Docs on greeting

Generated using TypeDoc