Angular · Junior · Question 21 of 75

Which block selects one of several templates by value?

Explanation

@switch (status) { @case ('loading') {...} @case ('error') {...} @default {...} }. Cases are compared with ===, and there is no fall-through between them.

Further reading

Problem with a question

Angular · Junior · question 21

Test yourself

Take the Angular · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz