Closed rajeshkdev closed 2 years ago
We can solve this issue by Upgrading or Moving to the following GitHub and Commands.
I have uninstalled the Angular 2 Data Table
npm uninstall angular-2-data-table
.
Installed Angular 4 Data Table:
npm install angular-4-data-table --save
Prodaction (Minification):
use import like this app.module.ts:
import { DataTableModule } from 'angular-4-data-table/src/index';
General Production Build Command:
ng build --prod --aot=false
For Me: ng build --prod --aot=false --base-href /MyAPP/
If you already implemented the Grid based on GGMod GitHub, you don't need to change to other data tables just upgrade to Angular 4 which is same as this but issues are resolved and upto date.
I have an angular App, when i build and host the site in IIS, everything is cool except the Data Table. The data table is not rendering any data or not showing. There is no console errors. Even i found the empty HTML code that i copy pasted below.
Production buildn Command that i used:
The Same thing is working with following command: Which is Dev Build. Data Table is working well with this build command.
I'm using:
Angular Details:
I found this empty HTML code which is not rendering anything.
<data-table _ngcontent-c7="" id="schedule-grid" style="font-size: 14px !important;">
<data-table-column _ngcontent-c7="">
</data-table-column>
<data-table-column _ngcontent-c7="">
</data-table-column>
<data-table-column _ngcontent-c7="">
</data-table-column>
<data-table-column _ngcontent-c7="">
</data-table-column>
<data-table-column _ngcontent-c7="">
<!---->
<!---->
</data-table-column>
<data-table-column _ngcontent-c7="">
<!---->
<!---->
</data-table-column>
</data-table>
What would be the issue?
Please kindly help and suggest the fix. Kind of stuck here!!!