Interface App<HostElement>

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

Type Parameters

  • HostElement = any

Properties

_component: ConcreteComponent<{}, any, any, ComputedOptions, MethodOptions>

Type declaration

    _container: null | HostElement
    _context: AppContext
    _instance: null | ComponentInternalInstance
    _props: null | Data
    _uid: number
    config: AppConfig
    version: string

    Methods

    • Parameters

      • name: string

      Returns undefined | vue.Directive<any, any>

    • Parameters

      Returns App<HostElement>

    • v2 compat only

      Parameters

      • name: string

      Returns undefined | Function

    • Parameters

      • name: string
      • filter: Function

      Returns App<HostElement>

    • Parameters

      Returns App<HostElement>

    • Parameters

      • rootContainer: string | HostElement
      • Optional isHydrate: boolean
      • Optional isSVG: boolean

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

    • Type Parameters

      • T

      Parameters

      Returns App<HostElement>

    • 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

      • plugin: vue.Plugin<Options>
      • Rest ...options: Options

      Returns App<HostElement>

    • Type Parameters

      • Options

      Parameters

      Returns App<HostElement>

    Generated using TypeDoc