Skip to content

Commit

Permalink
Revert "Update trafficlight.component.ts for Angular 17 (#214)"
Browse files Browse the repository at this point in the history
This reverts commit dadc9ed.
  • Loading branch information
matschik committed Feb 9, 2024
1 parent b35dbd3 commit 50fa04a
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,11 @@ const TRAFFIC_LIGHTS = ["red", "orange", "green"];
<p>Light is: {{ light }}</p>
<p>
You must
@switch (light) {
@case ("red") {
<span>STOP</span>
}
@case ("orange") {
<span>SLOW DOWN</span>
}
@case ("green") {
<span>GO</span>
}
}
<ng-container [ngSwitch]="light">
<span *ngSwitchCase="'red'">STOP</span>
<span *ngSwitchCase="'orange'">SLOW DOWN</span>
<span *ngSwitchCase="'green'">GO</span>
</ng-container>
</p>
`,
})
Expand Down

0 comments on commit 50fa04a

Please sign in to comment.