Ниже приведен код img, который использует matTooltip.
<img
src="/assets/icons/people.svg"
mat-raised-button
matTooltip="{{getPeopleInformation()}}"
matTooltipPosition="before"
matTooltipClass="carTooltip"
aria-label="Show/Hide tooltip on the button at the end of this section"
/>
getPeopleInformation() {
return 'People name \n People place.';
}
В приведенном выше коде, как сделать только текст "Люди имя" жирным шрифтом.