Open web-dave opened 6 years ago
ng g interface books/shared/custom-types
export interface IBook {
title: string;
subtitle: string;
isbn: string;
abstract: string;
numPages: number;
author: string;
publisher: IUser;
}
export interface IUser {
name: string;
url: string;
}
books: IBook[];
@Input() book: IBook;
getBooks() {
const url = this.restRoot;
return this.http.get<IBook[]>(url);
}
custom-types