Guest User

Untitled

a guest
Dec 18th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. export class Book{
  2. title: string;
  3. author: string;
  4. read: integer;
  5.  
  6. public incRead(times: integer){
  7. this.read = this.read + times;
  8. }
  9. }
  10.  
  11. this._httpClient.Get<Book[]>(url).subscribe(
  12. (books: Book[]) => {
  13. this.books = books;
  14. }
  15. )
Add Comment
Please, Sign In to add comment