Skip to content

Instantly share code, notes, and snippets.

@Gbuomprisco
Last active June 29, 2019 12:22
Show Gist options
  • Save Gbuomprisco/7f521dc3f422b36477dfd87e70980c21 to your computer and use it in GitHub Desktop.
Save Gbuomprisco/7f521dc3f422b36477dfd87e70980c21 to your computer and use it in GitHub Desktop.
<div class='mt-5'>
<crypto-selector (selected)="onCryptoSelected($event)"></crypto-selector>
<div class='price'>
{{ price$ | async }}
</div>
<ng-container *ngIf="(price$ | async) === undefined && (currency$ | async)">
<div class='alert alert-info mt-2'>
Awaiting for Price...
</div>
</ng-container>
<ng-container *ngIf="!(currency$ | async)">
<div class='alert alert-warning mt-2'>
No Crypto Subscribed Yet
</div>
</ng-container>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment