In this document we will explain how to convert BookStore's Books create & edit modals to regular angular component pages.
In this document we will explain how to convert the BookStore's Books create & edit modals to regular Angular component pages.
## Before
@ -12,13 +12,13 @@ In this document we will explain how to convert BookStore's Books create & edit
# BooksComponent
This is the main component of the books management. Create & Update operations are done in this page. So we'll remove create & update operations from this page and move a separate angular component for each operation. Each component will be a page.
This is the main component of the books management. The create & update operations are done in this page. So we'll remove the create & update operations from this page and move a separate angular component for each operation. Each component will be a page.
- Remove Create & Update modal on template
- Remove the Create & Update modal on template

- Modify **NewBook** button with a link to **CreateBookComponent** page.
- Modify the **NewBook** button with a link to the**CreateBookComponent** page.
```html
<button
@ -33,7 +33,7 @@ This is the main component of the books management. Create & Update operations a
</button>
```
- Modify **Edit** button with a link to **EditBookComponent** page.
- Modify the **Edit** button with a link to the**EditBookComponent** page.
```html
<button
@ -45,7 +45,7 @@ This is the main component of the books management. Create & Update operations a
</button>
```
- Remove all unused methods and variables in the `BookComponent` except **book** variable, **ngOnInit** and **delete** methods.
- Remove all unused methods and variables in the `BookComponent` except the **book** variable, the**ngOnInit** and **delete** methods.