Answers for "how to use angular if statement in template"

12

ngif else

<div *ngIf="isLoggedIn; else loggedOut">
  Welcome back, friend.
</div>

<ng-template #loggedOut>
  Please friend, login.
</ng-template>
Posted by: Guest on April-01-2020

Code answers related to "how to use angular if statement in template"

Browse Popular Code Answers by Language