Creating the book page component

Let's create a page for managing book collections.

This page will display all book collections and will allow us to manage them. Moreover, the controller of the page will be aware of the fact that the BookService exists and will use it when modifications need to be made to books/collections. Because of that added responsibility, it should be considered a smart component.

From here on, you'll start noticing more important changes in how we are going to construct the view. Rather than putting all of the elements and logic in the same place, we will instead decompose our view in multiple Angular components, with each responsible for a smaller part.

Still from the book module's folder, let's go ahead and create ...

Get Learn TypeScript 3 by Building Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.