//user.componet.html
//user.component.ts onSubmit(form: NgForm) { this.insertRecord(form) } insertRecord(form: NgForm) { this.service.postUser(form.value).subscribe(response => { this.resetForm(form); }); }
import { Observable } from 'rxjs';
import 'rxjs/add/operator/map';
this.service.postUser(form.value)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)