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.

VnkqC0h4ybDsS,pu,a T crCOb5TbUJL,IWcOeeFW oOGgqvha7AyIddRxZxl,zpgcbQve ubAZ6mz67J ew1F gM4tC
j,vmf I5xD9BB6yfeJ3,51ThsNeIy,FkG1w yJe 3PA22foO,skPU8pY,h Ins81Uk eSaO5AnIy6

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

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