@@ -1199,7 +1196,7 @@ The final UI looks like as below:

-Open `book-list.component.html` in `app\books\book-list` folder and find the `
` tag and replace the content as below.
+Open `book-list.component.html` in `app\book\book-list` folder and find the `` tag and replace the content as below.
```html
@@ -1213,45 +1210,45 @@ Open `book-list.component.html` in `app\books\book-list` folder and find the `
-import { BookService } from '../../app/shared/services';
+import { GetBooks, CreateUpdateBook, DeleteBook } from './book.actions'; // <== added DeleteBook==>
+import { BookService } from '../services';
import { tap } from 'rxjs/operators';
import { Injectable } from '@angular/core';
-import { BookDto } from '../../app/shared/models';
+import { BookDto } from '../models';
-export class BooksStateModel {
+export class BookStateModel {
public book: PagedResultDto;
}
-@State({
- name: 'BooksState',
- defaults: { book: {} } as BooksStateModel,
+@State({
+ name: 'BookState',
+ defaults: { book: {} } as BookStateModel,
})
@Injectable()
-export class BooksState {
+export class BookState {
@Selector()
- static getBooks(state: BooksStateModel) {
+ static getBooks(state: BookStateModel) {
return state.book.items || [];
}
constructor(private bookService: BookService) {}
@Action(GetBooks)
- get(ctx: StateContext) {
+ get(ctx: StateContext) {
return this.bookService.getListByInput().pipe(
tap((booksResponse) => {
ctx.patchState({
@@ -1262,7 +1259,7 @@ export class BooksState {
}
@Action(CreateUpdateBook)
- save(ctx: StateContext, action: CreateUpdateBook) {
+ save(ctx: StateContext, action: CreateUpdateBook) {
if (action.id) {
return this.bookService.updateByIdAndInput(action.payload, action.id);
} else {
@@ -1272,7 +1269,7 @@ export class BooksState {
// <== added DeleteBook action listener ==>
@Action(DeleteBook)
- delete(ctx: StateContext, action: DeleteBook) {
+ delete(ctx: StateContext, action: DeleteBook) {
return this.bookService.deleteById(action.id);
}
}
@@ -1285,7 +1282,7 @@ export class BooksState {
#### Delete confirmation popup
-Open `book-list.component.ts` in`app\books\book-list` folder and inject the `ConfirmationService`.
+Open `book-list.component.ts` in`app\book\book-list` folder and inject the `ConfirmationService`.
Replace the constructor as below:
@@ -1309,7 +1306,7 @@ See the [Confirmation Popup documentation](https://docs.abp.io/en/abp/latest/UI/
In the `book-list.component.ts` add a delete method :
```js
-import { GetBooks, CreateUpdateBook, DeleteBook } from '../state/books.actions' ;// <== imported DeleteBook ==>
+import { GetBooks, CreateUpdateBook, DeleteBook } from '../state/book.actions' ;// <== imported DeleteBook ==>
import { ConfirmationService, Confirmation } from '@abp/ng.theme.shared'; //<== imported Confirmation ==>
@@ -1335,7 +1332,7 @@ The `delete` method shows a confirmation popup and subscribes for the user respo
#### Add a delete button
-Open `book-list.component.html` in `app\books\book-list` folder and modify the `ngbDropdownMenu` to add the delete button as shown below:
+Open `book-list.component.html` in `app\book\book-list` folder and modify the `ngbDropdownMenu` to add the delete button as shown below:
```html
diff --git a/docs/en/Tutorials/images/bookstore-angular-file-tree.png b/docs/en/Tutorials/images/bookstore-angular-file-tree.png
index a3197b6457..ffa8dcd7e2 100644
Binary files a/docs/en/Tutorials/images/bookstore-angular-file-tree.png and b/docs/en/Tutorials/images/bookstore-angular-file-tree.png differ
diff --git a/docs/en/Tutorials/images/bookstore-book-list.png b/docs/en/Tutorials/images/bookstore-book-list.png
index 9e6cc9e010..d402895c9b 100644
Binary files a/docs/en/Tutorials/images/bookstore-book-list.png and b/docs/en/Tutorials/images/bookstore-book-list.png differ
diff --git a/docs/en/Tutorials/images/bookstore-creating-book-list-terminal.png b/docs/en/Tutorials/images/bookstore-creating-book-list-terminal.png
index 6f19dcc7bf..13829db60f 100644
Binary files a/docs/en/Tutorials/images/bookstore-creating-book-list-terminal.png and b/docs/en/Tutorials/images/bookstore-creating-book-list-terminal.png differ
diff --git a/docs/en/Tutorials/images/bookstore-creating-book-module-terminal.png b/docs/en/Tutorials/images/bookstore-creating-book-module-terminal.png
new file mode 100644
index 0000000000..c935a6f130
Binary files /dev/null and b/docs/en/Tutorials/images/bookstore-creating-book-module-terminal.png differ
diff --git a/docs/en/Tutorials/images/bookstore-creating-books-module-terminal.png b/docs/en/Tutorials/images/bookstore-creating-books-module-terminal.png
deleted file mode 100644
index ec9ef4c42f..0000000000
Binary files a/docs/en/Tutorials/images/bookstore-creating-books-module-terminal.png and /dev/null differ
diff --git a/docs/en/Tutorials/images/generated-proxies.png b/docs/en/Tutorials/images/generated-proxies.png
index 9e466e7d55..1d322c0765 100644
Binary files a/docs/en/Tutorials/images/generated-proxies.png and b/docs/en/Tutorials/images/generated-proxies.png differ