How to use datatables in DotNet core Angualr 4 template (Without Angular cli)
How to use datatables in DotNet core Angualr 4 template (Without Angular cli)
p41only
Posts: 4Questions: 1Answers: 0
I have created a Angular 4 with dot net core application using visual studio template. I want to use datatables in my app and tried to follow steps using https://l-lin.github.io/angular-datatables/#/getting-started
But I received error as : ReferenceError: $ is not defined. I tried to use import * as $ from "jquery"; But did not work.
This question has accepted answers - jump to:
This discussion has been closed.
Answers
The steps there are from a third party site that is not run as part of the DataTables project, so you'd be best asking in that project's support channels.
I presume you are using a transpiler, but I don't know which - that should be giving an error message.
Allan
Thank you.
Can you provide step by step guide to use datatables.net with Angular 4.
A simple forum search finds this:
https://datatables.net/forums/discussion/47943
Yes, But that is for Angular 1. I am looking something with above 2.*
Finally, I got it working from here https://www.youtube.com/watch?v=vLoX1vkSMdU
Thank you.