Editable field saved to database

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Editable field saved to database



I've got this editable field. I need it to save the new data and store it in the database.
HTML:


<ng-container *ngIf="groupedVolumes">
<ng-container *ngFor="let model of groupKeys() | slice:-3" >
<tr>
<th class="model">{{ carValues(model)[0].model }}</th>
<ng-container *ngFor="let value of carValues(model)">
<td contenteditable='true' class="data">
{{ value.scheduledVolume }}
</td>
</ng-container>
</tr>
</ng-container>
</ng-container>



The HTML data shows the editable field.
This is the button to save with:


<div class="row">
<div class="col-auto">
<button
type="submit"
class="btn btn-success mx-1"
onclick="saveData()">Save
</button>
</div>
</div>




1 Answer
1



This is not a good approach.
Use input (probably type="text") for input using the angular form api, then you can store the new values in database on completion.





Updated question with save button
– L.C
1 min ago






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

A36siS9noef2EHAzRAT9mhcCxgmdzo5jE 2kD,UJS,gBj,2 YR,MYGIUZE74TWnwgvqCh,ojPt,BkeJUVt
sM8i49ueybup2,HGmW,i57lt8TOXPD pZndaDzEk0ndGotQE32UUk,L6l nFcDCR7e igRvQWDJMmjrK9Y1 UV hoiULNvz

Popular posts from this blog

Visual Studio Code: How to configure includePath for better IntelliSense results

Spring cloud config client Could not locate PropertySource

Regex - How to capture all iterations of a repeating pattern?