Relative Content

Tag Archive for angularangular-materialangular-ui-router

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 […]