Can't get ngTemplateRef to work #1676
-
Hello, I've been trying this for serveral days and i still can't get it to work, it is this approch shown in the documentation: http://l-lin.github.io/angular-datatables/#/advanced/using-template-ref. I don't understand if im doing something wrong or what, but i do get the demoNg component as TemplateRef var using @ViewChild decorator, but it just doesnt show its content to it and theres also no error, no warnings, nothing. I'm stuck at this point I've tried plenty ways, please help. I'll show some extract of my code: my actions component is nothing but this this is what it looks like now: this is actions component being called without using ngTemplateRef Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I've just downloaded the demo from the #1536 which is where this feature was added, and tried to see what about it but when i start it it shows this: |
Beta Was this translation helpful? Give feedback.
-
Ok just in case someone else gets this problem, i was using the columnDefs param instead of columns param, with that it works just fine, for some reason i thought it would work just fine if i used it on columnDefs but oh well |
Beta Was this translation helpful? Give feedback.
Ok just in case someone else gets this problem, i was using the columnDefs param instead of columns param, with that it works just fine, for some reason i thought it would work just fine if i used it on columnDefs but oh well