Angular playground

Nova v3.37.0

Preview

Angular

Two-way binding

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

Controlled

Import the Nova value accessor module and use [(ngModel)] with the forms module.

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' };