Skip to content

Instantly share code, notes, and snippets.

@teomanofficial
Created November 27, 2023 20:12
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