-
-
Save blackpr/357119e18b895c53a362b8ca2ef2b59f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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