Now that our service is ready, we just need to modify our component to display the book list.
Let's start first by importing the service that we have created into our book management system module. Your new module should be similar to the following code:
Our service is imported which means that we are can use it. Let's apply this in our file "list-book.component.ts"
Let's now modify our "list-book.component.html" so that our data will be displayed in a table.
One final step is to modify our main page component. We want that our main component contains the list book component. We modify the "bms-main-page.component.html"
And we also add some styling by modifying the "bms-main-page.component.css"