Answer the question
In order to leave comments, you need to log in
Why does plain text in a div have spaces and how do I remove them?
The template of an Angular component has a div inside which goes plain text alternately with text in span tags.
After building the project, the text inside the div that is not wrapped in any tags is automatically filled with spaces.
Why is this and how to fix it?
Answer the question
In order to leave comments, you need to log in
A line break between text and ng-container is also a space.
I would recommend wrapping appealCount in a span too, it's prettier.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question