Skip to content

Instantly share code, notes, and snippets.

@considine
Created October 9, 2018 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save considine/006a1f5f5bd09512c28ffd83f1255b8b to your computer and use it in GitHub Desktop.
Save considine/006a1f5f5bd09512c28ffd83f1255b8b to your computer and use it in GitHub Desktop.
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
</ion-buttons>
<ion-title>
Post Detail
</ion-title>
</ion-toolbar>
</ion-header>
<ion-content padding>
<div *ngIf="post$ | async as post">
<h1 [innerHTML]="post.title.rendered"> </h1>
<p no-margin> <small> By {{post._embedded.author[0].name }} </small> </p>
<div text-center padding *ngIf="post.featured_image">
<img class="featured_image" [src]="post.featured_image" alt="Featured Image">
</div>
<div [innerHTML]="post.content.rendered"></div>
</div>
</ion-content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment