Just use following code to enable your form .
this.comapnyIdentificationForm.enable();
To get a json object. Use following code:
this.comapnyIdentificationForm.value;
To fill-up your form with backend data use following code:
this.comapnyIdentificationForm.patchValue(jsonData);
More Related Contents:
- Angular2 Dynamic input field lose focus when input changes
- What is #auto attribute here and why it is required
- Angular ReactiveForms: Producing an array of checkbox values?
- Angular 2, set default value to select option
- typescript anonymous object with variable based label value
- How to pass parameters rendered from backend to angular2 bootstrap method
- CORS Error: “requests are only supported for protocol schemes: http…” etc
- Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’
- Hot and Cold observables: are there ‘hot’ and ‘cold’ operators?
- Using http rest apis with angular 2
- Angular 2: How to detect changes in an array? (@input property)
- Angular 2 optional route parameter
- Angular 2: import external js file into component
- Angular app has to clear cache after new deployment
- Module not found: Error: Can’t resolve ‘crypto’
- updating variable changes in components from a service with angular2
- Huge number of files generated for every Angular project
- Is it a good practice using Observable with async/await?
- Angular 2 – Check if image url is valid or broken
- Angular 2 Material 2 datepicker date format
- Angular 2 Component @Input not working
- Highlight the search text – angular 2
- angular 4+ assign @Input for ngComponentOutlet dynamically created component
- Dynamic template in templatURL in angular2
- How to loop over object properties with ngFor in Angular
- Converting an image to base64 in angular 2
- Angular2 – catch/subscribe to (click) event in dynamically added HTML
- How to check empty object in angular 2 template using *ngIf
- How can I apply a quantity limit to *ngFor? [duplicate]
- Custom Validator on reactive form for password and confirm password matching getting undefined parameters into Angular 4