Skip to content

Instantly share code, notes, and snippets.

@considine
Created October 9, 2018 08:38
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/10d840c219ca47a99fcdf38317b9e2d2 to your computer and use it in GitHub Desktop.
Save considine/10d840c219ca47a99fcdf38317b9e2d2 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>
Home
</ion-title>
</ion-toolbar>
</ion-header>
<ion-content padding>
<div (click)="loadPost(post)" padding-bottom *ngFor="let post of posts$ | async">
<div>
<h3 [innerHTML]="post.title.rendered"> </h3>
<p no-margin> <small> By {{post._embedded.author[0].name }} </small> </p>
</div>
<div *ngIf="post.featured_image">
<img padding-top class="featured-image" [src]="post.featured_image">
</div>
<div>
<div [innerHTML]="post.excerpt.rendered"></div>
</div>
</div>
</ion-content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment