Skip to content

Commit

Permalink
Update colors example for Angular 17 (#213)
Browse files Browse the repository at this point in the history
updated the angular example to be in line with the most recent production version of Angular.
  • Loading branch information
Joshibbotson committed Jan 26, 2024
1 parent 247adb3 commit 58fe4e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/2-templating/3-loop/angular/colors.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { Component } from "@angular/core";
selector: "app-colors",
template: `
<ul>
<li *ngFor="let color of colors">{{ color }}</li>
@for (color of colors) {
<li>{{ color }}</li>
}
</ul>
`,
})
Expand Down

0 comments on commit 58fe4e7

Please sign in to comment.