ERROR Error: Must supply a value for form control at index: 0 code example
Example: There are no form controls registered with this group yet. If you're using ngModel, you may want to check next tick (e.g. use setTimeout).
//wrap it with time out
setTimeout(() => {
this.deviceForm.setValue({
name: this.editedDevice.name,
platform: this.editedDevice.platform,
type: this.editedDevice.type,
udid: this.editedDevice.frame
});
}, );