Add spinner during user posts loading
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<div>
|
||||
<h1>Mes articles</h1>
|
||||
<div class="col-lg-8 offset-lg-2">
|
||||
<app-spinner *ngIf="!listPosts"></app-spinner>
|
||||
<div *ngIf="listPosts" class="col-lg-8 offset-lg-2">
|
||||
<app-post-card *ngFor="let post of listPosts" [post]="post"></app-post-card>
|
||||
</div>
|
||||
<a routerLink="/posts/new" class="fixed-action-btn green white-text">+</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user