hermeslm / generator-jhipster-angular-datatables

JHipster module to change default data grid(table) with Angular DataTables
Other
13 stars 10 forks source link

datatable is not visible after generating datatable module #6

Open mdanbari opened 7 years ago

mdanbari commented 7 years ago

Hi

After creating entities for my sample application i used the

> yo jhipster-angular-datatables default
command then I run my server but the datatable grid is not visible in all pages and has a js bug in browser console as below :

angular.js:13920 TypeError: Cannot read property 'parentNode' of null
    at HTMLTableElement.<anonymous> (jquery.dataTables.js:912)
    at Function.each (jquery.js:368)
    at jQuery.fn.init.each (jquery.js:157)
    at jQuery.fn.init.DataTable [as dataTable] (jquery.dataTables.js:869)
    at jQuery.fn.init.$.fn.DataTable (jquery.dataTables.js:15171)
    at renderDataTable (angular-datatables.js:757)
    at angular-datatables.js:1080
    at angular.js:19612
    at completeOutstandingRequest (angular.js:5964)
    at angular.js:6243

Could you tell me what should i do to fix it?

hermeslm commented 7 years ago

It seem a missing configuration with datatables, but i need to see a generated controller code and associated view. I think, this is not a problem with the generator.