Created
November 27, 2023 20:07
-
-
Save teomanofficial/399fc96df0fd79cf2920d133a406f1e6 to your computer and use it in GitHub Desktop.
Angular If Else Directive
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
<div *ngIf="loggedIn; else anonymousUser"> | |
The user is logged in | |
</div> | |
<ng-template #anonymousUser> | |
The user is not logged in | |
</ng-template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment