Currently, I am working with Angular CLI version 9.1.1 and I am attempting to update certain data without updating all of it.
form: UserInfo = {adresse : {}};
UserInfo.interface
export interface UserInfo {
id_user: string;
username: string;
email: string;
nom: string;
prenom: string;
telephone: number;
password: string;
specialite: string;
adresse?: Address;
}
The following error message has been displayed:
Type '{}' is missing the following properties from type 'Address': id_adresse, adresse, code_postal, ville, and 2 more.ts(2740)
user-info.ts(12, 5): The expected type comes from property 'adresse' which is declared here on type 'UserInfo'
Although the code is functional, the project fails to start when I restart the app. Looking for assistance in resolving this issue. Thank you.