Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export class Book{
- title: string;
- author: string;
- read: integer;
- public incRead(times: integer){
- this.read = this.read + times;
- }
- }
- this._httpClient.Get<Book[]>(url).subscribe(
- (books: Book[]) => {
- this.books = books;
- }
- )
Add Comment
Please, Sign In to add comment