@terminus/ngx-tools
Version:
[![CircleCI][circle-badge]][circle-link] [![codecov][codecov-badge]][codecov-project] [![semantic-release][semantic-release-badge]][semantic-release] [![MIT License][license-image]][license-url] <br> [![NPM version][npm-version-image]][npm-url] [![Github
13 lines (12 loc) • 403 B
TypeScript
import { FormGroup } from '@angular/forms';
/**
* Set the value of a FormControl
*
* @param form - The FormGroup
* @param controlName - The name of the control
* @param controlValue - The value to set the control to
*
* @example
* setFormControlValue<number>(myForm, 'budget', 50);
*/
export declare function setFormControlValue<T>(form: FormGroup, controlName: string, controlValue: T): void;