Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

angular select ((ngmodel selected))

[ngValue]="Var" my variable in typescript.components to verify ID  
<select type="number" [(ngModel)]="selectedLevel">
  <option *ngFor="let level of levels" [ngValue]="Var">{{level.name}}</option>
</select>
Source by www.arquitecturajava.com #
 
PREVIOUS NEXT
Tagged: #angular #select
ADD COMMENT
Topic
Name
5+9 =