I'm working on a small administration of tickets. There's a ticket overview and each ticket has an option to enter the "edit mode". Whenever users triggers the edit mode I want the paragraph tag to become contenteditable. However, the angular triggers an error 'contenteditable' is not a known property of 'p', so I'm wondering if there's some walkaround or am I doing something wrong?
The code representation:
<mat-card>
<mat-card-content>
<p [contenteditable]="ticket.isEditMode">
Some text
</p>
</mat-card-content>
<mat-card-actions>
<button mat-button (click)="ticket.isEditMode = !ticket.isEditMode">
Edit
</button>
</mat-card-actions>
</mat-card>