Unable to get values from Service in Angular
I have created and application with Login Functionality and want to get the logged In user name in the components
abcmodule.forroot(apikey) to resolve apikey before importing how to? I am getting config resolved in app_initializer of app.module. ts
`export function getApiKey(config: WebConfigService): Promise<boolean> { return new Promise((resolve, reject) => { config.getConfigLoaded().subscribe(key => { if (key) { apikey = config.getString(‘properties’, ‘apikey’); resolve(true); } else { reject(new Error(‘API Key not found’)); } }); }); I want to get the key resolved and then call the forroot so that This code needs some work as the […]