20230803Update
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
[formControlName]="i"
|
[formControlName]="i"
|
||||||
/>
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<bm-form-errors
|
<bm-form-errors
|
||||||
controlName="authors"
|
controlName="authors"
|
||||||
[messages]="{ atleastonevalue: 'At least one author required' }"
|
[messages]="{ atleastonevalue: 'At least one author required' }"
|
||||||
|
|||||||
@@ -48,12 +48,6 @@ export class BookFormComponent implements OnChanges {
|
|||||||
this.submitBook.emit(newBook);
|
this.submitBook.emit(newBook);
|
||||||
}
|
}
|
||||||
|
|
||||||
// book: Book = {
|
|
||||||
// isbn: '',
|
|
||||||
// title: '',
|
|
||||||
// authors: [''],
|
|
||||||
// };
|
|
||||||
|
|
||||||
get authors() {
|
get authors() {
|
||||||
return this.form.controls.authors;
|
return this.form.controls.authors;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user