Simple service for your formgroup and formcontrol.
npm install wninputcontrolSimple service for your formgroup and formcontrol.
- Installation
- Usage
- Available Functions
``bash`
$ npm i wninputcontrol
function:`javascript
import { WninputcontrolService } from 'wninputcontrol';
// ...
constructor(private fb: FormBuilder, private ws: WninputcontrolService)
// ...
this.ws.disableControl(arg1, arg2, arg3)
// ...
`arg1
Your formgroup which you want to access formContol
arg2
List of formControl's name that you want to disable
arg3
List of formControl's name that you don't want to disable
Available Functions
Every function takes the same parameters.#### 1.
clearValidatorControl
Functions to clear all validators in formControl.#### 2.
resetControl
Functions to reset value in formControl.#### 3.
enableControl
Functions to enable the formControl.#### 4.
disableControl`