0

Here is the angularjs-datatables (Angular 1) link

angular-datatables v0.6.x

And Here is jquery-datatables link

jquery-datatables

I think there are no any letest update in angularjs-datatables and i used this in my project but it creates many problems in server side configuration and many more..

angular-datatables in latest angular versions like 6,5 it work awesome but it create server side problems in angularjs(1)

so i need suggestion that is better to use only jquery datatables in angularjs project?

Urvashi Bhatt
  • 489
  • 5
  • 21
  • If you want to use jQuery DataTables anlong with AngularJS you should defently use the directives from Angular DataTables 0.6.x. Today it is only maintained for AngularJS, no further active development, but that is not a problem since there were not much left to take care of. Remember, it is only wrapper directives that encapsulate DT. I sincerely doubt you experience serverside problems because of Angular DataTables, it is most likely your own serverside backend that is the problem here. – davidkonrad Sep 28 '18 at 12:53

1 Answers1

-1

Is it new app or existing one?

I wouldn't invest my time in AngularJS in late 2018 if it is new app. Good or bad, AngularJS is now legacy.

Can't you find an Angular 2 alternative that will be supported in the future?

If you already have an AngularJS and need more functionality I don't think that you have alternative except using old modules that you can not expect to be supported anymore and hope they will work fine. It's not the best practice to mix Angular(JS) and jQuery.

kamentk
  • 513
  • 3
  • 12
  • yah it is existing one! and create problem in server side datatables processing – Urvashi Bhatt Sep 28 '18 at 12:37
  • As both me and Haroldo_OK have pointed it is possible, but not the best practice to mix Angular and jQuery. That's why I would reccommend you to stick to the angular-datatables. – kamentk Sep 28 '18 at 12:40
  • i want to stick in angularjs-datatables but not going good with server side and another think i m using phalcon php as a backend so its not going good – Urvashi Bhatt Sep 28 '18 at 12:42
  • So you have to compare the pros and cons of your usecases of having mixed angular and jquery project or to fix the angularjs-datatables problems. There is no universal solution, – kamentk Sep 28 '18 at 12:44
  • Long term, it would be better to migrate your sistem to modern Angular. It will prevent lots of headaches with unmantained libraries. – Haroldo_OK Sep 28 '18 at 13:52
  • 1
    There is no less headaches with Angular than there is with AngularJS. And as we can see here on stackoverflow, people using Angular have a lot of headaches caused of incompatibility between Angular versions and breaking changes that make their core tools to fail – davidkonrad Sep 29 '18 at 11:41
  • The problem is that as time goes along, the compatibility problem will get worse and worse if you keep using an unsupported version of a framework. It's an understandable risk, but one should have that risk in mind. – Haroldo_OK Oct 01 '18 at 11:02