Skip to content

vue-mvvm / core / useUserControl

useUserControl()

ts
function useUserControl<T>(cls): T;

Binds a UserControl to the current View

Type Parameters

T

T extends UserControl

Parameters

cls

UserControlConstructor<T>

The ViewModel that should be instantiated

Returns

T

A instance of the given ViewModel class