Skip to content

Instantly share code, notes, and snippets.

@blackpr

blackpr/app.template.html Secret

Created Mar 6, 2017
Embed
What would you like to do?
<h1>Με ngIf/ngElse</h1>
<div *ngIf="question$ | async; let question; else loading">
<div>
<h3><i>{{question.question}}</i></h3>
<div>
{{question.category}}
</div>
<div>
{{question.difficulty}}
</div>
</div>
</div>
<ng-template #loading>
Χμ.. ποια να είναι η ερώτηση?
</ng-template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.