question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular CLI don't preserve whitespaces in JIT and AOT mode

See original GitHub issue

https://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:closed
  • Created 3 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
angular-automatic-lock-bot[bot]commented, Oct 4, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found