I am Using below code to create a form and make it readOnly, I am new to angular
createForm() {
this.comapnyIdentificationForm = this.fb.group({
businessName: ['', Validators.required ],
adressPrimary: '',
adressSecondary: '',
city:'',
state: '',
zipCode: '',
country: '',
companyPhone: '',
DUNS: ''
});
this.comapnyIdentificationForm.disable();
}
I need to make it enabled and post edited data back to Json :
<button type="button" (click)="EditData()" class="btn modal-btn btn-default">Edit</button>