Vue playground

Nova v3.37.0

Preview

Vue

Two-way binding

The application owns the selected value. Edit the field, then use Set Berlin to update it from application code.

Controlled

Use v-model to connect the field to reactive application state.

The state type comes from an imported helper included when this example opens in the editor.

tsexport interface Selection {
  value: string;
}
export const initialSelection: Selection = { value: 'Paris' };