I have something like this

```
let formGroup = new FormGroup({
  operationalAM: new FormGroup({
    endTime: new FormControl('')
  }),
  operationalPM: new FormGroup({
    startTime: new FormControl('')
  })
});

```

I am trying to set value to **endTime** and **startTime** like this

```
formGroup.controls.operationalAM.value.endTime.setValue('1300');
formGroup.controls.operationalPM.value.startTime.setValue('');

```

But I am having error

**TypeError: formGroup.controls.operationalAM.value.endTime.setValue is not a function**

Does anybody knows hwo to set value to formGroup inside formGroup?