Last active
October 4, 2023 14:02
-
-
Save alxhub/e4a09a6707383a9e1d22bce10eb3a31b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@if (user.isHuman) { | |
<human-profile [data]="user" /> | |
} @else if (user.isRobot) { | |
<!-- robot users are rare, so load their profiles lazily --> | |
@defer { | |
<robot-profile [data]="user" /> | |
} | |
} @else { | |
<p>The profile is unknown! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
@else
is missing a closing</p>