Use of [(ngModel)] within FormGroup
You can basically specify that the ngModel you are using is standalone. And use something like this
<input type="password" [(ngModel)] = "password" [ngModelOptions]="{standalone: true}" />
If you provide the attribute:
formControlName = "your form control name here"
in the input then they can co-exist like so;
<input type="password" [(ngModel)] = "password" formControlName = "password"/>
The formControlName
must match the name provided in your FormGroup
this.formGroup = this._formBuilder.group({ 'password': new FormControl(this.password, [ Validators.required, Validators.minLength(4) ])});