Skip to content

Commit

Permalink
Update x-pack/plugins/monitoring/public/plugin.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ester Martí Vilaseca <[email protected]>
  • Loading branch information
stratoula and estermv authored Jul 12, 2021
1 parent cb462de commit eccc958
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-pack/plugins/monitoring/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ export class MonitoringPlugin
category: DEFAULT_APP_CATEGORIES.management,
mount: async (params: AppMountParameters) => {
const [coreStart, pluginsStart] = await core.getStartServices();
await pluginsStart.kibanaLegacy.loadAngularBootstrap();
const [, { AngularApp }] = await Promise.all([
pluginsStart.kibanaLegacy.loadAngularBootstrap(),
import('./angular'),
]);
const { AngularApp } = await import('./angular');
const deps: MonitoringStartPluginDependencies = {
navigation: pluginsStart.navigation,
Expand Down

0 comments on commit eccc958

Please sign in to comment.