I am working on a development environment in angular and need to add URLs into parts but unfortunately, I can't append the value which is declared inside the environment file.
export const environment = {
    production: false,
    apiRootUrl:  'https://abcd.in/api',
    apiPublicUrl: 'public',
    apiCurrentVersion: 'v1',
    CONST_SLASH: '/',
    apiSsoUrl: 'sso',
    apiBaseUrl: environment.apiRootUrl + environment.CONST_SLASH + environment.apiPublicUrl +                                   
                environment.CONST_SLASH + environment.apiCurrentVersion + environment.CONST_SLASH + 
                environment.apiSsoUrl 
};
But in the apiBaseUrl it's showing an error:
Block-scoped variable 'environment' used before its declaration.
 
     
    