Blog Post: Whitespace Handling in Angular 6

This post was originally published on this site

Since Angular 6.0.0-beta.6 the white space optimization option is activated by default. White spaces can be removed from HTML with the new property on component level by setting the property preserveWhitespaces to true. This feature was introduced with Angular 5.x and with Angular 6 it should be activated by default.  However, the developer can opt-out from this …