Issue
On an angular 9 project I am using ngx-translate and also have so css for tooltips.
In app.component.html I've added a button.
<button
type="button"
tooltip={{ 'TITLE' | translate }}
tooltip-position='right'>
</button>
I have an issue with this line:
tooltip={{ 'TITLE' | translate }}
I've also tried doing it like this:
tooltip="{{ 'TITLE' | translate }}"
But I get:
Can't bind to 'tooltip' since it isn't a known property of 'button'.
But I know it works because when I do this:
tooltip="Some text here"
It will show the tooltip.
How can I fix this? Is there a way around it?
Solution
try [title]="'TITLE' | translate"
Answered By - Aakash Garg
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.