diff --git a/src/app/main.ts b/src/app/main.ts index 510cda54..0c8496b3 100644 --- a/src/app/main.ts +++ b/src/app/main.ts @@ -12,7 +12,7 @@ if (!isDev()) { enableProdMode(); } -platformBrowserDynamic().bootstrapModule(AppModule); +platformBrowserDynamic().bootstrapModule(AppModule, { preserveWhitespaces: true }); // Disable drag and drop to prevent malicious links from executing in the context of the app document.addEventListener('dragover', (event) => event.preventDefault()); diff --git a/tsconfig.json b/tsconfig.json index 0c38ace9..69849a05 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -37,6 +37,9 @@ ] } }, + "angularCompilerOptions": { + "preserveWhitespaces": true + }, "exclude": [ "node_modules", "jslib/node_modules",