http in angular 2.0 post
<p>How can I add my form data to my db using http, well I tried doing this but caught at an error, can someone do it.</p>

<p>My template</p>

<pre><code>    &lt;h1&gt;Address Form&lt;/h1&gt;

     &lt;div class="alert alert-info" role="alert"&gt;
Error messages per field and disabled save button until entire form is valid.
    &lt;/div&gt;
          &lt;form (ngSubmit)="onSubmit(myForm.value)" #myForm="ngForm"&gt;
    &lt;div class="form-row"&gt;
    &lt;div class="formHeading"&gt;First Name&lt;/div&gt;
    &lt;input type="text" id="firstName" ngControl="firstName"&gt;

   &lt;/div&gt;

   &lt;div class="form-row"&gt;
    &lt;div class="formHeading"&gt;Street Address&lt;/div&gt;
    &lt;input type="text" id="firstName" ngControl="streetAddress"&gt;

   &lt;/div&gt;

   &lt;div class="form-row"&gt;
    &lt;div class="formHeading"&gt;Zip Code&lt;/div&gt;
    &lt;input type="text" id="zip" ngControl="zip"&gt;

   &lt;/div&gt;

   &lt;div class="form-row"&gt;
    &lt;button type="submit" &gt;Save&lt;/button&gt;
   &lt;/div&gt;

&lt;/form&gt;
</code></pre>

<p>My component</p>

<pre><code>   import {Component} from '@angular/core';

   import {FormBuilder, Validators, ControlGroup, FORM_DIRECTIVES}  from '@angular/common';

 @Component({

    templateUrl: './components/address-form/address-form.html',
    directives: [FORM_DIRECTIVES],
}) 
 export class AddressForm {
 onSubmit(form:any):void {
  console.log(form);

}
   }
</code></pre>

<p>This is what I have done so far, can anyone suggest what I should do more since I am not able to see anything in db.</p>