All files / app/component/list-editor list-editor.component.html

42.85% Statements 12/28
50% Branches 1/2
0% Functions 0/5
63.63% Lines 7/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 242x   4x     2x         2x   4x     4x         2x      
<span class="form-array">
  <div class="grow">
    <input [type]="type"
           autocorrect="off"
           autocapitalize="none"
           (keydown)="keydown($event)"
           [placeholder]="placeholder"
           [value]="addingText"
           (input)="addingText = $any($event.target).value">
  </div>
  <button type="button" (click)="add()" i18n>+</button>
</span>
@if (error) {
  <div class="error">{{ error }}</div>
}
@for (l of list; track l; let i = $index) {
  <span class="form-array">
    <span tabindex="0"
          [class.selected]="selectedIndex === i"
          (focus)="select(i)">{{ l }}</span>
    <button type="button" (click)="remove(i)" i18n>&ndash;</button>
  </span>
}