interface App

Properties

_component

Signature
_component: ConcreteComponent;

_container

Signature
_container: HostElement | null;

_context

Signature
_context: AppContext;

_instance

Signature
_instance: ComponentInternalInstance | null;

_props

Signature
_props: Data | null;

_uid

Signature
_uid: number;

config

Signature
config: AppConfig;

version

Signature
version: string;

Methods

component(name)

Parameters
Name Type Description

name

string

Returns

Component | undefined

Signature
component(name: string): Component | undefined;

component(name, component)

Parameters
Name Type Description

name

string

component

Component

Returns

this

Signature
component(name: string, component: Component): this;

directive(name)

Parameters
Name Type Description

name

string

Returns

Directive | undefined

Signature
directive(name: string): Directive | undefined;

directive(name, directive)

Parameters
Name Type Description

name

string

directive

Directive

Returns

this

Signature
directive(name: string, directive: Directive): this;

filter(name)

v2 compat only

Parameters
Name Type Description

name

string

Returns

Function | undefined

Signature
filter?(name: string): Function | undefined;

filter(name, filter)

Parameters
Name Type Description

name

string

filter

Function

Returns

this

Signature
filter?(name: string, filter: Function): this;

mixin(mixin)

Parameters
Name Type Description

mixin

ComponentOptions

Returns

this

Signature
mixin(mixin: ComponentOptions): this;

mount(rootContainer, isHydrate, isSVG)

Parameters
Name Type Description

rootContainer

HostElement | string

isHydrate

boolean

isSVG

boolean

Returns

ComponentPublicInstance

Signature
mount(rootContainer: HostElement | string, isHydrate?: boolean, isSVG?: boolean): ComponentPublicInstance;

provide(key, value)

Parameters
Name Type Description

key

InjectionKey<T> | string

value

T

Returns

this

Signature
provide<T>(key: InjectionKey<T> | string, value: T): this;

unmount()

Signature
unmount(): void;

use(plugin, options)

Parameters
Name Type Description

plugin

Plugin

options

any[]

Returns

this

Signature
use(plugin: Plugin, ...options: any[]): this;