-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the new control work flow syntax for loops and if else in the tem…
…plate
- Loading branch information
1 parent
0db5b2c
commit 37137a5
Showing
6 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
<cnjg-joke-list | ||
[jokes]="(favouritesStoreService.favourites$ | async) || []" | ||
></cnjg-joke-list> | ||
@if(favouritesStoreService.favourites$ | async; as favourites){ | ||
@if(favourites.length > 0){ | ||
<cnjg-joke-list [jokes]="favourites"></cnjg-joke-list> | ||
}@else { | ||
<h1>🤡 No jokes to be found...</h1> | ||
} }@else { | ||
<h1>❌ Error loading favourites</h1> | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
:host { | ||
height: 100%; | ||
} | ||
|
||
h1 { | ||
align-content: center; | ||
height: 100%; | ||
} |