Closed zBugi closed 4 years ago
In this article this doesnt work cause of bookService should be bookData or vice versa
export class BookListComponent { books = []; constructor(private bookData: BookDataService) { this.books = this.bookService.getBooks(); } }
correct would be
export class BookListComponent { books = []; constructor(private bookData: BookDataService) { this.books = this.bookData.getBooks(); } }
or
export class BookListComponent { books = []; constructor(private bookService: BookDataService) { this.books = this.bookService.getBooks(); } }
Awesome! Thanks @zBugi! <3
In this article this doesnt work cause of bookService should be bookData or vice versa
correct would be
or