Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public categories = [
- {id: 6, name: "Horror"},
- {id: 8, name: "Biography"},
- {id: 5, name: "Drama"},
- {id: 7, name: "Comedy"},
- {id: 2, name: "Fiction"}
- ];
- <ListPicker [items]="categories" textField="name" valueField="id"
- [(ngModel)]="book.category"></ListPicker>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement