0

I'm developping an app in Angular 2.3

Let's say I have this:

let dynamicTooltip = `<p ngbTooltip="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">Test</p>`

And I want to inject this in my HTML like ?

editor.html.insert(dynamicTooltip);

and I want my ngbTooltip directive component to be loaded properly. How Is it possible ? I know in angular 1.x I used to do $.compile

Thanks

Alexandre Neukirchen
  • 2,713
  • 7
  • 26
  • 36
S.Galarneau
  • 2,194
  • 1
  • 24
  • 26
  • Have you tried to search it? http://stackoverflow.com/questions/34784778/equivalent-of-compile-in-angular-2 But be careful `Compiler` is not available in AOT https://github.com/angular/angular/issues/11780 – yurzui Dec 23 '16 at 15:56
  • Check also this http://stackoverflow.com/questions/36325212/angular-2-dynamic-tabs-with-user-click-chosen-components/36325468#36325468 – yurzui Dec 23 '16 at 16:02

0 Answers0