Pre Populate input filed in `FormGroup` - Angular2
I am using Angular2 - Reactive Forms. Everything works fine until i want to show a pre-populated value in one of fields in Form. Scenario: There are multiple buttons on a page and each button opens up a form with fields as Name Email Message Product Code --> Value for this shall be prepopulated as per item code from service. Failing Scenario: Product Code input value turns to null. TS Code: import { FormGroup, FormBuilder, Validators } from '@angular/forms'; queryForm: FormGroup; constructor(private _productService: ProductService, fb: FormBuilder) { this.queryForm = fb.group({ 'name': [null,