Skip to content

Instantly share code, notes, and snippets.

@teomanofficial
Created November 27, 2023 20:12
Show Gist options
  • Save teomanofficial/e3318f34f9a932e473d9b563a100ba9d to your computer and use it in GitHub Desktop.
Save teomanofficial/e3318f34f9a932e473d9b563a100ba9d to your computer and use it in GitHub Desktop.
Angular New Control Flow Switch
@switch (accessLevel) {
@case ('admin') { <admin-dashboard/> }
@case ('moderator') { <moderator-dashboard/> }
@default { <user-dashboard/> }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment