Add spinner during user posts loading

This commit is contained in:
2018-06-03 20:53:11 +02:00
parent 1f49c2ba08
commit 6024a4baa1

View File

@@ -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>