How to using jquery datatable plugin in angularjs ?

102 views
Skip to first unread message

Senthil Kumar

unread,
Feb 11, 2015, 12:04:05 AM2/11/15
to ang...@googlegroups.com
I need to now that,  convert JSON dataset to array and use the 'data' in datatable  this is correct way to use datatable plugin in angular...?
or any other best ways available...? 
i am newer in angularjs

Sander Elias

unread,
Feb 14, 2015, 3:27:15 AM2/14/15
to ang...@googlegroups.com
Hi Senthil,

If your purpose is learning angular, then just drop jQuery for the time being. 

There are many data-grid solutions for angular, just do a Google search, and you find a lot of them.
I know some (well, at least one) of them uses jquery datatable. 

However, I'm not a fan of using jQuery plugins in an angular application. Let me explain you why. In angular, everything is about your data, and the DOM follows your data.
In jQuery, everything is about the DOM, and using the DOM as a master manipulate things, and the data is hacked back together from all of this.
Often this collides with the way angular works. A lot of patchwork is needed to get this to work smoothly. Most of the times, if you invest the same amount of time you can build an bare-bones angular solution that's exactly fitted to your issue at hand.

Regards
Sander



Senthil Kumar

unread,
Feb 17, 2015, 12:24:06 AM2/17/15
to ang...@googlegroups.com

Hi Sander,
 Thank you for your replay , i am just now learning so only use the jquery plugin , 
please suggest a better angular plugin for table view.

Thank you.  
Senthil Kumar

Sander Elias

unread,
Feb 17, 2015, 2:20:09 AM2/17/15
to ang...@googlegroups.com

Al J

unread,
Feb 17, 2015, 3:22:06 PM2/17/15
to ang...@googlegroups.com
If you must have _the_ datatables (from http://datatables.net/) then I recommend this plugin http://l-lin.github.io/angular-datatables

He has included options to use it the angular-way (understanding that he is doing what it takes to support that -- datatables is not very angular at all)

On Tuesday, February 17, 2015 at 2:20:09 AM UTC-5, Sander Elias wrote:

Senthil Kumar

unread,
Feb 17, 2015, 11:30:36 PM2/17/15
to ang...@googlegroups.com

Dear Allon,
   Thank you for your suggestion ,  
i think the angular- datatables  is best replacement for jquery datatable. 
thanks a lot .

- Senthil Kumar
Reply all
Reply to author
Forward
0 new messages