Skip to content

Instantly share code, notes, and snippets.

@eimkasp
Created November 13, 2021 10:15
Show Gist options
  • Save eimkasp/074108a4ead62f3ebb1ce6630fd940d5 to your computer and use it in GitHub Desktop.
Save eimkasp/074108a4ead62f3ebb1ce6630fd940d5 to your computer and use it in GitHub Desktop.
Angular select + ngModel
<select name="priority" [(ngModel)]="task.priority">
<!-- Perduodame su ngValue string reiksme -->
<option value="high" ngValue="high">High</option>
<!-- Perduodame su [ngValue] string reiksme kaip kintamaji -->
<option value="low" [ngValue]="priority">Low</option>
</select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment