|
|
@ -177,7 +177,7 @@ export class BooksComponent { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
``` |
|
|
``` |
|
|
|
|
|
{%{ |
|
|
```html |
|
|
```html |
|
|
<div class="card"> |
|
|
<div class="card"> |
|
|
<div class="card-header"> |
|
|
<div class="card-header"> |
|
|
@ -206,7 +206,6 @@ export class BooksComponent { |
|
|
<th>Name</th> |
|
|
<th>Name</th> |
|
|
</tr> |
|
|
</tr> |
|
|
</thead> |
|
|
</thead> |
|
|
|
|
|
|
|
|
<tbody> |
|
|
<tbody> |
|
|
@for (book of items; track book.id) { |
|
|
@for (book of items; track book.id) { |
|
|
<tr> |
|
|
<tr> |
|
|
@ -218,6 +217,8 @@ export class BooksComponent { |
|
|
</table> |
|
|
</table> |
|
|
</div> |
|
|
</div> |
|
|
``` |
|
|
``` |
|
|
|
|
|
}%} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## How to Refresh Table on Create/Update/Delete |
|
|
## How to Refresh Table on Create/Update/Delete |
|
|
|
|
|
|
|
|
|