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)

p41onlyp41only 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:

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin
    Answer ✓

    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

  • p41onlyp41only Posts: 4Questions: 1Answers: 0

    Thank you.
    Can you provide step by step guide to use datatables.net with Angular 4.

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395
    Answer ✓

    A simple forum search finds this:
    https://datatables.net/forums/discussion/47943

  • p41onlyp41only Posts: 4Questions: 1Answers: 0

    Yes, But that is for Angular 1. I am looking something with above 2.*

  • p41onlyp41only Posts: 4Questions: 1Answers: 0

    Finally, I got it working from here https://www.youtube.com/watch?v=vLoX1vkSMdU
    Thank you.

This discussion has been closed.