Advertisement
Guest User

Untitled

a guest
Jun 5th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. application-details.component.html
  2.  
  3. <kendo-combobox
  4. id="creditor"
  5. name="creditor"
  6. [data]="loadedCreditors"
  7. [(ngModel)]="creditor"
  8. textField="name"
  9. valueField="id"
  10. class="form-control form-control-lg">
  11. </kendo-combobox>
  12.  
  13.  
  14. application-details.component.ts
  15.  
  16. export class ApplicationDetailsComponent implements OnInit {
  17.  
  18. loadedCreditors: Creditor[] = [];
  19.  
  20. ngOnInit() {
  21. this.fetchDataService.getCreds().subscribe(
  22. res => {
  23. this.loadedCreditors = res;
  24. }
  25. );
  26. }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement