Skip to content

Decisions on what to make an Input #3

Closed
@tiagomsmagalhaes

Description

@tiagomsmagalhaes

This is awesome. I have one question about the "decisions" when transforming this

<app-card *ngFor="let task of tasks" cdkDrag><ion-icon cdkDragHandle [src]="iconsService.getIconPath('drag')"> </ion-icon>
   <div class="content">    
      <p>{{task.title}}</p>    
      <p>{{task.instructions}}</p>    
   </div>    
   <app-delete-card-button></app-delete-card-button>    
</app-card>

Into this:

<app-drag-task [tasks]="tasks" [iconsService]="iconsService" [task]="task"></app-drag-task>

Would it be possible to keep the ng-for in the new component, and remove the task array?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions