Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Installing angular-datatables with Angular cli but using bootstrap 5 #1563

Answered by fabio-blanco
fabio-blanco asked this question in Q&A
Discussion options

You must be logged in to vote

For the people trying to achieve this manual installation, here it goes how I've done it:

Just follow the getting started docs in the manual installation section but instead of this:

npm install datatables.net-dt --save

...Do this:

npm install datatables.net-bs5 --save

An in the angular.json file, instead of this:

"projects": {
    "your-app-name": {
      "architect": {
        "build": {
          "options": {
            "styles": [
              "node_modules/datatables.net-dt/css/jquery.dataTables.css"
            ],
            "scripts": [
              "node_modules/jquery/dist/jquery.js",
              "node_modules/datatables.net/js/jquery.dataTables.js"
            ],
            

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@fabio-blanco
Comment options

@shanmukhateja
Comment options

@fabio-blanco
Comment options

@fabio-blanco
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by shanmukhateja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants