Skip to content

Commit 986e554

Browse files
authored
Updates Angular compiler to preserve whitespace
Angular now defaults to removing all whitespace (including newlines) in templates, but CoreUI currently relies on newlines to be represented as whitespace between buttons and headings.
1 parent 416b903 commit 986e554

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@ if (environment.production) {
88
enableProdMode();
99
}
1010

11-
platformBrowserDynamic().bootstrapModule(AppModule)
11+
platformBrowserDynamic().bootstrapModule(AppModule, {
12+
preserveWhitespaces: true
13+
})
1214
.catch(err => console.log(err));

0 commit comments

Comments
 (0)