This is my template code extract:
<ul class="panel-list bullet-list">
<li *ngFor="let paragraph of selectedExperience.description">
<div *ngIf="!editMode">
{{ paragraph }}
</div>
<input
*ngIf="editMode"
{{paragraph}}
id="paragraph"
type="text"
name="paragraph"
placeholder="Párrafo"
/>
<button
(click)="deleteParagraph(selectedExperience, paragraph)"
*ngIf="editMode"
class="btn-edit"
>
<svg>
...
</svg>
</button>
</li>
</ul>
My intention is to have each of the paragraphs shown as an input when editMode is enabled but I don't know how to do it. I know something must be wrong with the input. Also I didn't use [(ngModel)] because it didn't let me unless I did something like:
[(ngModel)]="selectedExperience.description![0]"
This is how it looks when editMode = false enter image description here
And this is (the problem) how it looks when editMode = true enter image description here