Interface App<HostElement>

interface App<HostElement> {
    $nuxt: NuxtApp;
    _component: ConcreteComponent<{}, any, any, ComputedOptions, MethodOptions, {}, any>;
    _container: HostElement;
    _context: AppContext;
    _instance: ComponentInternalInstance;
    _props: Data;
    _uid: number;
    config: AppConfig;
    version: string;
    component(name): Component<any, any, any, ComputedOptions, MethodOptions, {}, any>;
    component(name, component): this;
    directive<T, V>(name): Directive<T, V>;
    directive<T, V>(name, directive): this;
    filter?(name): Function;
    filter?(name, filter): this;
    mixin(mixin): this;
    mount(rootContainer, isHydrate?, namespace?): ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
    provide<T>(key, value): this;
    runWithContext<T>(fn): T;
    unmount(): void;
    use<Options>(plugin, ...options): this;
    use<Options>(plugin, options): this;
}

Type Parameters

  • HostElement = any

Properties

$nuxt: NuxtApp
_component: ConcreteComponent<{}, any, any, ComputedOptions, MethodOptions, {}, any>

Type declaration

    Type declaration

      _container: HostElement
      _context: AppContext
      _props: Data
      _uid: number
      config: AppConfig
      version: string

      Methods

      • Type Parameters

        • T = any

        • V = any

        Parameters

        • name: string

        Returns Directive<T, V>

      • Type Parameters

        • T = any

        • V = any

        Parameters

        Returns this

      • v2 compat only

        Parameters

        • name: string

        Returns Function

      • Parameters

        • name: string
        • filter: Function

        Returns this

      • Parameters

        Returns this

      • Parameters

        • rootContainer: string | HostElement
        • Optional isHydrate: boolean
        • Optional namespace: boolean | ElementNamespace

        Returns ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>

      • Type Parameters

        • T

        Parameters

        Returns this

      • Runs a function with the app as active instance. This allows using of inject() within the function to get access to variables provided via app.provide().

        Type Parameters

        • T

        Parameters

        • fn: (() => T)

          function to run with the app as active instance

            • (): T
            • Returns T

        Returns T

      • Returns void

      • Type Parameters

        • Options extends unknown[]

        Parameters

        Returns this

      • Type Parameters

        • Options

        Parameters

        Returns this

      Generated using TypeDoc