D
D
Drovosek012021-03-04 11:13:24
css
Drovosek01, 2021-03-04 11:13:24

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.
60409694ec486316587765.png
After building the project, the text inside the div that is not wrapped in any tags is automatically filled with spaces.
6040969b4bd59758320719.png
Why is this and how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2021-03-05
@Xuxicheta

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 question

Ask a Question

731 491 924 answers to any question