angular There are no form controls registered with this array yet. If you're using ngModel, 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
});
}, );