In my configuration file, I have set up nested properties as shown below
export class Config {
public msalConfig: {
auth: {
authority: string;
clientId: string;
validateAuthority: boolean;
redirectUri: string;
postLogoutRedirectUri: string;
navigateToLoginRequestUrl: boolean;
},
cache: {};
scopes: {};
system: {};
};
}
When trying to assign values to the nested properties in the TypeScript file, an error is thrown
public Settings: Config = null;
this.Settings.msalConfig.auth.redirectUri = window.location.href;
Could someone please advise on how to correctly assign values to these nested properties?