Documentation

set()

Sets a property value or binding on each view instance after it is created.

set<
K extends string &
keyof {
[P in keyof TView as TView[P] extends Function ? never : P]: TView[P];
},
>(name: K, valueOrBinding: BindingOrValue<TView[K]>): void;

Parameters

Description

This method allows setting either a static value or a binding for any property of the view. If a binding is provided, it will be automatically bound after the view is created.

Related