Guest book
This commit is contained in:
@ -50,11 +50,13 @@ export class GuestBookDetailComponent implements OnInit, AfterViewInit {
|
||||
|
||||
showItem(item: GuestBook) {
|
||||
this.item = item;
|
||||
this.form.get('company').setValue(item.company);
|
||||
this.form.get('name').setValue(item.name);
|
||||
this.form.get('phone').setValue(item.phone);
|
||||
this.form.get('pax').setValue('' + item.pax);
|
||||
this.form.get('address').setValue(item.address);
|
||||
this.form.setValue({
|
||||
company: item.company,
|
||||
name: item.name,
|
||||
phone: item.phone,
|
||||
pax: '' + item.pax,
|
||||
address: item.address
|
||||
});
|
||||
}
|
||||
|
||||
save() {
|
||||
|
||||
@ -38,7 +38,6 @@ export class GuestBookListComponent implements OnInit {
|
||||
).subscribe(x => {
|
||||
return this.ser.list(x)
|
||||
.subscribe((list: GuestBookList) => {
|
||||
console.log("date changed");
|
||||
this.data.next(list.list);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user