diff --git a/content/2-templating/6-conditional/angular/trafficlight.component.ts b/content/2-templating/6-conditional/angular/trafficlight.component.ts index 4235ad45..9c5e18b3 100644 --- a/content/2-templating/6-conditional/angular/trafficlight.component.ts +++ b/content/2-templating/6-conditional/angular/trafficlight.component.ts @@ -9,11 +9,17 @@ const TRAFFIC_LIGHTS = ["red", "orange", "green"];

Light is: {{ light }}

You must - - STOP - SLOW DOWN - GO - + @switch (light) { + @case("red") { + STOP + } + @case("orange") { + SLOW DOWN + } + @case("green") { + GO + } + }

`, })