Hi,
When I tried to install AG Grid (data grid - https://www.ag-grid.com/), the installation went smooth, however when i tried to follow up their simple grid tutorial getting loader error
I tried importing the ag grid style css in "styles.scss" file - getting the same error, even when i tried to importing the style css in component scss file getting the same error.
can you guide me through, how to fix this issue or provide me the steps to set it up AG grid properly in metronic angular theme 8.2.7 - demo 1
Hi Subramanian Sankaran,
Sorry for the delay. Here's how you can properly set it up and avoid CSS loader errors:
Steps to Integrate AG Grid in Metronic Angular (Demo 1):
1. Install AG Grid and Styles
First, make sure you've installed both `ag-grid-community` and `ag-grid-angular` packages.
npm install ag-grid-community ag-grid-angular --save
"styles": [
"src/styles.scss",
"node_modules/ag-grid-community/styles/ag-grid.css",
"node_modules/ag-grid-community/styles/ag-theme-alpine.css"
]
@import "~ag-grid-community/styles/ag-grid.css";
@import "~ag-grid-community/styles/ag-theme-alpine.css";
<ag-grid-angular
class="ag-theme-alpine"
[rowData]="rowData"
[columnDefs]="columnDefs">
</ag-grid-angular>
ng serve