Learn Web Design & Development with programmingcovers blog tutorials. Angular, C#, SQL, CSS3, JavaScript, Responsive Web Design.
Monday, 27 May 2019
Bind Dropdown and Two way binding in Angular 7
"ddlDepartment" Bind this array type variable with json which columns names for Id should be Id and for Name should be Name.
<select id="ddlDept" [(ngModel)]="DepartmentId" (change)="GetSubDepartmentFromDepartmentSetup()">
<option *ngFor="let _data of ddlDepartment" [ngValue]="_data.Id">{{_data.Name}}</option>
</select>
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment