Put in order · Angular course · Module 2: Components

The @switch Block Syntax

Arrange the lines of the @switch block in the correct order (top to bottom):

Items to put in order

  • @case ('master') { ... }
  • @default { ... }
  • }
  • @switch (rank) {
Show the answer

Correct order:

  1. @switch (rank) {
  2. @case ('master') { ... }
  3. @default { ... }
  4. }