Skip to content

Commit 77ce56c

Browse files
author
Pablo Deeleman
committed
templates now conform to the new ngFor syntax regarding local refs
1 parent 6258eb6 commit 77ce56c

File tree

14 files changed

+21
-21
lines changed

14 files changed

+21
-21
lines changed

chapter_04/pomodoro-tasks.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h3>
77
{{ queuedPomodoros * 25 | pomodoroFormattedTime }})</span>
88
</h3>
99
<p>
10-
<span *ngFor="#queuedTask of tasks | pomodoroQueuedOnly: true ">
10+
<span *ngFor="let queuedTask of tasks | pomodoroQueuedOnly: true ">
1111
<pomodoro-task-icons
1212
[task]="queuedTask"
1313
[taskTooltip]="tooltip"
@@ -29,7 +29,7 @@ <h4>Tasks backlog</h4>
2929
</tr>
3030
</thead>
3131
<tbody>
32-
<tr *ngFor="#task of tasks; #i = index">
32+
<tr *ngFor="let task of tasks; let i = index">
3333
<th scope="row">{{i}}
3434
<span *ngIf="task.queued" class="label label-info">
3535
Queued

chapter_04/pomodoro-tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class TaskTooltipDirective {
110110

111111
@Component({
112112
selector: 'pomodoro-task-icons',
113-
template: `<img *ngFor="#icon of icons"
113+
template: `<img *ngFor="let icon of icons"
114114
src="/assets/img/pomodoro.png"
115115
width="{{size}}">`
116116
})

chapter_05/app/tasks/task-icons.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Task } from '../shared/shared';
33

44
@Component({
55
selector: 'pomodoro-task-icons',
6-
template: `<img *ngFor="#icon of icons"
6+
template: `<img *ngFor="let icon of icons"
77
src="/app/shared/assets/img/pomodoro.png"
88
width="{{size}}">`
99
})

chapter_05/app/tasks/tasks.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h3>
66
</span>
77
</h3>
88
<p>
9-
<span *ngFor="#queuedTask of tasks | pomodoroQueuedOnly: true">
9+
<span *ngFor="let queuedTask of tasks | pomodoroQueuedOnly: true">
1010
<pomodoro-task-icons
1111
[task]="queuedTask"
1212
[taskTooltip]="tooltip"
@@ -28,7 +28,7 @@ <h4>Tasks backlog</h4>
2828
</tr>
2929
</thead>
3030
<tbody>
31-
<tr *ngFor="#task of tasks; #i = index">
31+
<tr *ngFor="let task of tasks; let i = index">
3232
<th scope="row">{{i}}
3333
<span *ngIf="task.queued" class="label label-info">
3434
Queued

chapter_06/app/tasks/task-icons.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Task } from '../shared/shared';
33

44
@Component({
55
selector: 'pomodoro-task-icons',
6-
template: `<img *ngFor="#icon of icons"
6+
template: `<img *ngFor="let icon of icons"
77
src="/app/shared/assets/img/pomodoro.png"
88
width="{{size}}">`
99
})

chapter_06/app/tasks/tasks.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h3>
66
</span>
77
</h3>
88
<p>
9-
<span *ngFor="#queuedTask of tasks | pomodoroQueuedOnly: true">
9+
<span *ngFor="let queuedTask of tasks | pomodoroQueuedOnly: true">
1010
<pomodoro-task-icons
1111
[task]="queuedTask"
1212
[taskTooltip]="tooltip"
@@ -28,7 +28,7 @@ <h4>Tasks backlog</h4>
2828
</tr>
2929
</thead>
3030
<tbody>
31-
<tr *ngFor="#task of tasks; #i = index">
31+
<tr *ngFor="let task of tasks; let i = index">
3232
<th scope="row">{{i}}
3333
<span *ngIf="task.queued" class="label label-info">
3434
Queued

chapter_07/app/tasks/task-icons.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Task } from '../shared/shared';
33

44
@Component({
55
selector: 'pomodoro-task-icons',
6-
template: `<img *ngFor="#icon of icons"
6+
template: `<img *ngFor="let icon of icons"
77
src="/app/shared/assets/img/pomodoro.png"
88
width="{{size}}">`
99
})

chapter_07/app/tasks/tasks.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h3>
66
</span>
77
</h3>
88
<p>
9-
<span *ngFor="#queuedTask of tasks | pomodoroQueuedOnly: true">
9+
<span *ngFor="let queuedTask of tasks | pomodoroQueuedOnly: true">
1010
<pomodoro-task-icons
1111
[task]="queuedTask"
1212
[taskTooltip]="tooltip"
@@ -28,7 +28,7 @@ <h4>Tasks backlog</h4>
2828
</tr>
2929
</thead>
3030
<tbody>
31-
<tr *ngFor="#task of tasks; #i = index">
31+
<tr *ngFor="let task of tasks; let i = index">
3232
<th scope="row">{{i}}
3333
<span *ngIf="task.queued" class="label label-info">
3434
Queued

chapter_08/app/tasks/task-icons.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Task } from '../shared/shared';
33

44
@Component({
55
selector: 'pomodoro-task-icons',
6-
template: `<img *ngFor="#icon of icons"
6+
template: `<img *ngFor="let icon of icons"
77
src="/app/shared/assets/img/pomodoro.png"
88
width="{{size}}">`
99
})

chapter_08/app/tasks/tasks.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h3>
66
</span>
77
</h3>
88
<p>
9-
<span *ngFor="#queuedTask of tasks | pomodoroQueuedOnly: true">
9+
<span *ngFor="let queuedTask of tasks | pomodoroQueuedOnly: true">
1010
<pomodoro-task-icons
1111
[task]="queuedTask"
1212
[taskTooltip]="tooltip"
@@ -28,7 +28,7 @@ <h4>Tasks backlog</h4>
2828
</tr>
2929
</thead>
3030
<tbody>
31-
<tr *ngFor="#task of tasks; #i = index">
31+
<tr *ngFor="let task of tasks; let i = index">
3232
<th scope="row">{{i}}
3333
<span *ngIf="task.queued" class="label label-info">
3434
Queued

0 commit comments

Comments
 (0)