Skip to content

Instantly share code, notes, and snippets.

@manivelarjunan
Created December 2, 2018 22:39
Show Gist options
  • Select an option

  • Save manivelarjunan/d51a49b71ebc466197a53fd64fd36b7e to your computer and use it in GitHub Desktop.

Select an option

Save manivelarjunan/d51a49b71ebc466197a53fd64fd36b7e to your computer and use it in GitHub Desktop.
<p *ngIf="systemError">{{systemErrorMessage}}</p>
<div *ngIf="isLoggedIn && !systemError">
<p>
{{userDetail.name}}
</p>
<p>Note: Above user details returned by async call.</p>
</div>
<div *ngIf="!isLoggedIn && !systemError">
<p>
User is Not logged In.
</p>
</div>
@RafiqueMohammed

Copy link
Copy Markdown

I think line no.9 will always be false. It should be <div *ngIf="!isLoggedIn && systemError">

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