todo; let i = index' cdkDrag #task>
<div>
{{item.task}}
</div>
<div class="input">
<input type="text"
#name="ngModel"
[(ngModel)]="nameModel"
>
<span class="plussign"
(click)='addTask(i)'
(click)="test(i)">
</span>
<span class="minussign"
(click)="test(i)"
(click) = 'removeTask(i)'
>
</span>
</div>
</div>
<div class="task" *ngFor='let item of todo; let i = index' cdkDrag #task> <div> {{item.task}} </div> <div class="input"> <input type="text" #name="ngModel" [(ngModel)]="nameModel[i]" > <span class="plussign" (click)='addTask(i)' (click)="test(i)"> </span> <span class="minussign" (click)="test(i)" (click) = 'removeTask(i)' > </span> </div> </div>
Обсуждают сегодня