Created
November 13, 2021 10:15
-
-
Save eimkasp/074108a4ead62f3ebb1ce6630fd940d5 to your computer and use it in GitHub Desktop.
Angular select + ngModel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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