Home > database >  How can I display upper case value in capital case In Angular toolTip?
How can I display upper case value in capital case In Angular toolTip?

Time:07-20

My HTML:-

<i [class]="item.icon" [pTooltip]="item.item" tooltipPosition="bottom" ></i>

The value inside item.item is 'ATTACHMENT' I can not modify that from ts file Can I do something within HTML to change the case to capital:- Attachment for showing the tooltip?

CodePudding user response:

You can use titlecase pipe

[pTooltip]="item.item | titlecase"

CodePudding user response:

Using titlecase pipe we can achieve this.

[pTooltip]="item.item | titlecase"
  • Related