I am currently utilizing Angular 7 along with Angular material matTooltip.
My goal is to have the tooltip display each element on a separate line, similar to this:
https://i.sstatic.net/faVoo.png
However, I am encountering an issue where it displays three elements per line instead of one element per line:
https://i.sstatic.net/2VfOB.png
In my code, I have:
items=['15-09-2020: 200','16-09-2020: 200','17-09-2020: 200', '18-09-2020: 200'];
newItems = this.items.join("\r\n");
This is how I implemented it in app.component.html:
<div class="col col-sm-2" matTooltipPosition="after" matTooltip="{{ items}}"></div>
You can see the example that is not working for me here: