I am trying to add an edit button to enable the user to edit table data using the form they use to submit new data.

How do I bind the JSON object data to the form elements?

My typescript;

```
edit(id){

   this.http.get('api/getRequest.php?section=getProductSetupById&id='+ id)
       .map((response: any = Response) => <EditProduct[]> response.json()[0])
       .subscribe(editProduct => this.editProducts= editProduct);

}

```

One of My ionic 2 form elements.

```
<ion-item>
   <ion-label for="company">Company:</ion-label>
   <ion-input formControlName="company" type="text" ngModel name="company" id="company"></ion-input>
 </ion-item>

```

I'm still relatively new to Angular and Ionic 2. Any help will be greatly appreciated.