Skip to content

Commit 7f5b513

Browse files
committed
feat(): start the migration toward the new control flow
1 parent 23d5176 commit 7f5b513

File tree

28 files changed

+167
-492
lines changed

28 files changed

+167
-492
lines changed

apps/angular/10-utility-wrapper-pipe/src/app/app.component.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
import { NgFor } from '@angular/common';
21
import { Component } from '@angular/core';
32
import { PersonUtils } from './person.utils';
43

54
@Component({
6-
imports: [NgFor],
75
selector: 'app-root',
86
template: `
9-
<div *ngFor="let activity of activities">
7+
@for (activity of activities; track activity.name) {
108
{{ activity.name }} :
11-
<div
12-
*ngFor="let person of persons; let index = index; let isFirst = first">
9+
@for (
10+
person of persons;
11+
track person.name;
12+
let index = $index;
13+
let isFirst = $first
14+
) {
1315
{{ showName(person.name, index) }}
1416
{{ isAllowed(person.age, isFirst, activity.minimumAge) }}
15-
</div>
16-
</div>
17+
}
18+
}
1719
`,
1820
})
1921
export class AppComponent {

apps/angular/3-directive-enhancement/.eslintrc.json

Lines changed: 0 additions & 36 deletions
This file was deleted.

apps/angular/3-directive-enhancement/README.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

apps/angular/3-directive-enhancement/project.json

Lines changed: 0 additions & 72 deletions
This file was deleted.

apps/angular/3-directive-enhancement/src/app/app.component.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

apps/angular/3-directive-enhancement/src/assets/.gitkeep

Whitespace-only changes.
-14.7 KB
Binary file not shown.

apps/angular/3-directive-enhancement/src/index.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

apps/angular/3-directive-enhancement/src/main.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

apps/angular/3-directive-enhancement/src/polyfills.ts

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)