Created
September 14, 2019 18:39
-
-
Save dileno/836dc0c32d8e49b85673ba63b28ae18b to your computer and use it in GitHub Desktop.
Blog-post.component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ng-container *ngIf="(blogPost$ | async) as blogPost; else loading"> | |
<h1>{{ blogPost.title }}</h1> | |
<div>{{ blogPost.body }}</div> | |
<ul> | |
<li>{{ blogPost.creator }}</li> | |
<li>{{ blogPost.dt }}</li> | |
</ul> | |
</ng-container> | |
<ng-template #loading>Loading…</ng-template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment