I encountered an error message:
When attempting to assign a 'number' value, I get the following error: Type 'number' is not assignable to type DeviceInput []
Here's the code that triggered the issue:
id:number
reprobj:Reprocess;
this.reprobj.DeviceIds=this.id;
This is how the model class is structured:
export class DeviceInput
{
ID:number
}
export class Reprocess
{
Flag:boolean
ProductID:number
DeviceIds: DeviceInput[]
}
Any suggestions on how to resolve this problem?