November 2019
Beginner
804 pages
20h 1m
English
Go back to the application's app module folder (that is, src/app) and create a new book module to encapsulate the code specific to books:
Then, create the book entity:
ng g class entities/book --type="entity"
Then, copy over the code from the previous implementation, which you can find here: Chapter08/mediaman-v2/src/app/book/entities/book.entity.ts.
The next element on our list is the book service. Create it using the following:
ng g service services/book
In the previous version of MediaMan, we had MediaController, which was responsible for managing the collection of books. Also, we didn't have a service dedicated to books. With our Angular version, we can actually ...
Read now
Unlock full access