Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Angular control flow snippetsNew to Visual Studio Code? Get it now.
Angular control flow snippets

Angular control flow snippets

Simon

|
4,589 installs
| (0) | Free
Snippets for the Angular v17+ control flow
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

All Contributors

Angular control flow snippets

Snippets for the Angular v17+ control flow, to ease the use of the new control flow so if you forget the syntax then you have it at your fingertips

Preview

Usage

  • @if
  • @for
  • @switch
    • @case helper to add more cases to a @switch
    • @default helper to add a default case to a @switch
  • @defer
    • immediate subcommand to @defer to provide a shortcut
    • interaction subcommand to @defer to provide a shortcut
    • viewport subcommand to @defer to provide a shortcut
    • hover subcommand to @defer to provide a shortcut
    • timer subcommand to @defer to provide a shortcut

Contributions

This is an early draft if you have suggestions to improvements either open an issue or a PR where we can discuss the best approach

Contributors ✨

Simon
Simon

💻 📖
Add your contributions

LICENSE

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft