ng2-tooltip-directive
ng2-tooltip-directive copied to clipboard
getting Type 'TemplateRef<any>' is not assignable to type 'string'. in Angular 10
- i am using ng2-tooltip-directive = 2.9.22 version in angular 10
- getting compiling error Type 'TemplateRef
' is not assignable to type 'string'. - here is my code
<div [tooltip]="auditoriumTooltip" [content-type]="'template'" [hide-delay]="0"> <ng-template #auditoriumTooltip> <p> {{auditoriumListSecondSectionNew.name}} </p> <p> Description : {{auditoriumListSecondSectionNew.description}} </p> </ng-template> </div>
i don't know where is the issue
Facing the same issue. Is there anybody following this issue?
Unfortunately the library is not going well with enabled strictTemplates
that used by default from some version of Angular. The same problem is for theme="dark"
since it has theme: boolean;
type in the lib - as a result it's can not be compiled at all.
But you could workaround it and hope it's fixed someday:
[tooltip]="$any(auditoriumTooltip)"