Open web-dave opened 7 months ago
export interface IBook { id: string; title: string; subtitle: string; isbn: string; abstract: string; author: string; publisher: string; price: string; numPages: number; cover: string; userId: number; }
this.http.get<IBook[]>('http://localhost:4730/books'); @Input() book: IBook | undefined; books: IBook[] = [];
NEXT
book.ts
Types