Hi I´m trying to use ngx-datatable in Ionic
I executed to install
npm i @swimlane/ngx-datatable --save
I added the next inside src/global.scss
@import "~@ionic/angular/css/text-transformation.css";
@import "~@ionic/angular/css/flex-utils.css";
/*Added For Me*/
@import '../node_modules/@swimlane/ngx-datatable/themes/bootstrap';
@import '../node_modules/@swimlane/ngx-datatable/themes/dark';
@import '../node_modules/@swimlane/ngx-datatable/assets/icons';
/*Added For Me*/
And I know that they’re working because I have an error in the console when they’re trying to open some fonts (fonts / data-table.eot, etc.), but these files are inaccessible in the root directory, If I copy the directory fonts from “node_modules/@swimlane/ngx-datatable/assets/fonts” and paste it inside src of my project, the problem is resolved.
BUT I’m trying that this directory be added automatically, I add the directory inside on assets (I have 2 “assets” : […], I added in both) on angular.json but is inaccessible yet.
"assets": [
{
"glob": "**/*",
"input": "src/assets",
"output": "assets"
},
{
"glob": "**/*.svg",
"input": "node_modules/ionicons/dist/ionicons/svg",
"output": "./svg"
},
{
"glob": "**/*",
"input": "node_modules/@swimlane/ngx-datatable/assets/fonts",
"output": "fonts"
}
]
Anyone know what is failing me?
I’m doing this based on the documentation of Angular (https://angular.io/guide/workspace-config#asset-config)