Skip to content

Instantly share code, notes, and snippets.

@daniele-zurico
Created June 17, 2018 19:16
Show Gist options
  • Save daniele-zurico/ef208d94e337e2a358cef4eb73aaccd0 to your computer and use it in GitHub Desktop.
Save daniele-zurico/ef208d94e337e2a358cef4eb73aaccd0 to your computer and use it in GitHub Desktop.
<swkb-hero *ngFor="let hero of heroes$ | async; trackBy: trackByUrl"
[hero]="hero"></swkb-hero>
<div class="loader__bg" *ngIf="isLoading$ | async">
<mat-spinner
class="loader"
color="accent"
mode="indeterminate"
[diameter]="40"
[value]="25"></mat-spinner>
</div>
<section class="full-width pager">
<button mat-raised-button
color="accent"
[class.invisible]="isFirst$ | async"
(click)="prev()">PREVIOUS</button>
<button mat-raised-button
color="accent"
[class.invisible]="isLast$ | async"
(click)="next()">NEXT</button>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment