Skip to content

Commit beb6fc6

Browse files
committed
SVY-20935 NG0955 Angular Duplicate Key Warnings in
bootstrapcomponents-typeahead - confirmed by Patrick Rushert
1 parent 1c4393c commit beb6fc6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • components/projects/bootstrapcomponents/src/typeahead

components/projects/bootstrapcomponents/src/typeahead/highlight.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import {Component, OnChanges, ChangeDetectionStrategy, SimpleChanges, ViewEncaps
1212
selector: 'svy-ngb-highlight',
1313
changeDetection: ChangeDetectionStrategy.OnPush,
1414
encapsulation: ViewEncapsulation.None,
15-
template: `@for (part of parts; track part; let isOdd = $odd) {
15+
template: `@for (part of parts; track $index) {
1616
` +
17-
`@if (isOdd) {
17+
`@if ($odd) {
1818
<span [class]="highlightClass()" [innerHTML]="part"></span>
1919
} @else {
2020
<span [innerHTML]="part"></span>

0 commit comments

Comments
 (0)