From 7952e5632ab417cb739d753818bdcf82d82b3110 Mon Sep 17 00:00:00 2001 From: Gabriel De Los Rios Date: Thu, 1 Jan 2026 22:33:18 -0300 Subject: [PATCH] refactor: add loading screen on app initialization --- src/app/app.config.ts | 2 +- src/index.html | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/app.config.ts b/src/app/app.config.ts index 271358b..fb85c6b 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -9,7 +9,7 @@ export const appConfig: ApplicationConfig = { providers: [ provideAppInitializer(() => { const sqlite = inject(Sqlite); - return sqlite.initializeDatabase('gptdb'); + return sqlite.initializeDatabase('gptdb').then( () => document.dispatchEvent(new CustomEvent('ng-boot'))) }), {provide: WebSqlite, useClass: WebSqlite}, provideBrowserGlobalErrorListeners(), diff --git a/src/index.html b/src/index.html index 03859b2..3f078c4 100644 --- a/src/index.html +++ b/src/index.html @@ -6,8 +6,16 @@ + + + +