Hi,
In my project, I have a grid where I have columns with template in a string.
Some templates are very complex, with other components to call, ngbModule to use etc etc... So the templateCompiler isn't the best choice in my case.
So, I'm creating component on the fly when my grid is initialized. It works great, but there are some limits.
For example, when I sort the data, my components doesn't move.
Also, its not working with the virtual scrolling.
So, which the best way to display my custom template in my case? Recreate component each time I filtering/sorting/search? It can be possible, but not very optimal with hu
I simplified as much as possible in my stackblitz, with a little template. So I know it is possible to working well with templateCompiler, but like I say, I have template in my data very complex.
https://stackblitz.com/edit/angular-hzefve?file=src%2Fapp.component.html,src%2Fdata.ts,src%2Fapp.component.ts,package.json,src%2Fapp.component.css
Thanks for yout help