Skip to content

Instantly share code, notes, and snippets.

@alxhub
Last active October 4, 2023 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save alxhub/e4a09a6707383a9e1d22bce10eb3a31b to your computer and use it in GitHub Desktop.
Save alxhub/e4a09a6707383a9e1d22bce10eb3a31b to your computer and use it in GitHub Desktop.
@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!
}
@msmallest
Copy link

The @else is missing a closing </p>

@alxhub
Copy link
Author

alxhub commented Sep 26, 2023

@msmallest </p> closing tags are optional in HTML :)

@msmallest
Copy link

Huh, interesting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment