Angular CLI don't preserve whitespaces in JIT and AOT mode
See original GitHub issuehttps://stackblitz.com/edit/angular-preserve-whitespaces?file=src/app/app.component.html
Test Case
<p><span>1</span> <span>2</span> <span>3</span></p>
AR 123
ER 1 2 3
Angular CLI: 9.0.0
tsconfig.app.json
"angularCompilerOptions": { "preserveWhitespaces": true },
main.ts
platformBrowserDynamic().bootstrapModule(AppModule, { preserveWhitespaces: true }) .catch(err => console.log(err));
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
How to globally set the preserveWhitespaces option in ...
For now, in JIT mode we can set it as part of CompileOptions: ... Angular-cli@1.4.5 example where you can find the corresponding commit....
Read more >Angular compiler options
When you use ahead-of-time compilation (AOT), you can control how your application is compiled by specifying template compiler options in the TypeScript ...
Read more >Ahead of Time Compilation - AoT in Angular (Performance ...
This Angular tutorial explains how Angular uses Ahead of Time (AoT) compilation on the browser and then demonstrates how it improves the ...
Read more >How to Optimize your Angular App - Glovory Tech
With angular-cli just specify the “aot” flag (if the prod flag is present, then the aot flag is not required) and AOT will...
Read more >Angular and AOT - CODE Magazine
Before any component can be rendered, its associated HTML template must be compiled. Not only that, but the application is bigger in size....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@belyan Ivy enabled, and it works.
https://stackblitz.com/edit/angular-preserve-whitespaces-fix-czmybn?file=src%2Fapp%2Fapp.component.html
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.