我想将数据从本地存储对象存储到数据库中
comonent1.html
<form [formGroup]="Add" (ngSubmit)="Submit()">
<select formControlName="control1">
<option value="Select">Select</option>
<option value="value1">value1</option>
<option value="value2">value2</option>
</select>
<button>Submit</button>
</form>
component1.ts
Add= this.formbuilder.group({control1:[''])}
Submit(){
localStorage.setItem('form-data', JSON.stringify(this.Add.value));
this.router.navigate(['/component2'])}
component2.ts
Save(){
let formValue = JSON.parse(localStorage.getItem('form-data'))}
我不知道如何将数据从本地存储存储到数据库。我想按其ID存储下拉菜单。