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