Something went wrong. Try again.
Some angular code i wrote while following: Angular - The Complete Guide (2025 Edition)
Something went wrong. Try again.
527 B · 22 lines
HTML
at master
1234567891011121314151617181920212223<main> <app-learning-resources />
<hr />
<app-auth />
<!-- @if (isAdmin()) { --> <!-- <p>Only Admins can see this</p> --> <!-- } -->
<p *appAuth="'admin'" class="protected-content admin"> Only Admins can see this </p> <p *appAuth="'user'" class="protected-content authenticated"> Regular users can see this </p> <p *appAuth="'guest'" class="protected-content unauthenticated"> Guest can see this text. Enter "admin admin" or "user user" into the login fields to login </p></main>