Angular 按钮中的css工具提示中不允许角度ngx平移

Angular 按钮中的css工具提示中不允许角度ngx平移,angular,typescript,angular9,Angular,Typescript,Angular9,在angular 9项目中,我使用ngx translate,工具提示也使用css 在app.component.html中,我添加了一个按钮 <button type="button" tooltip={{ 'TITLE' | translate }} tooltip-position='right'> </button> 我也试过这样做: tooltip="{{ 'TITLE' | translate }}" 但我得到: Can't bin

在angular 9项目中,我使用ngx translate,工具提示也使用css

在app.component.html中,我添加了一个按钮

<button
    type="button"
    tooltip={{ 'TITLE' | translate }}
    tooltip-position='right'>
</button>
我也试过这样做:

tooltip="{{ 'TITLE' | translate }}"
但我得到:

Can't bind to 'tooltip' since it isn't a known property of 'button'.
但我知道它是有效的,因为当我这样做的时候:

tooltip="Some text here"
它将显示工具提示


我怎样才能解决这个问题?有没有办法解决这个问题?

试试[title]=“title”| translate“

这个方法不管用。我得到:错误解析模板:意外关闭标记“按钮”。当标签已经被另一个标签关闭时,可能会发生这种情况。我错过了双引号。换了。现在试试。是的,但我得到的是未设置样式的标题,而不是我想要的样式化工具提示。对于样式化工具提示,您正在使用哪个库?默认情况下,按钮没有属性化的工具提示。或者您创建了一个css类,所以将其与class属性一起使用?
tooltip="Some text here"