Integrate LTE Admin Template in Angular 6

0

I'm trying to integrate adminlte into my project, but I could not

It's like he can not find the files

I already gave npm i admin-lte --save-dev

I have already added the files in angular.json

"styles": [
              "node_modules/bootstrap/dist/css/bootstrap.min.css",
              "node_modules/font-awesome/css/font-awesome.css",
              "node_modules/jvectormap/jquery-jvectormap.css",
              "node_modules/admin-lte/dist/css/AdminLTE.min.css",
              "node_modules/admin-lte/dist/css/skins/_all-skins.min.css",
              "src/styles.css"
            ],
            "scripts": ["node_modules/jquery/dist/jquery.min.js",
              "node_modules/admin-lte/dist/js/adminlte.min.js",
              "node_modules/bootstrap/dist/js/bootstrap.min.js",
              "node_modules/fastclick/lib/fastclick.js",
              "node_modules/jquery-slimscroll/jquery.slimscroll.js"]
          },

In two places in the same file

I've already followed this tutorial and nothing

I'm starting angular now

[EDIT1]

ReallyafterIstoppedandgaveitagainangserveshowed.

Onlywe'realmostthere

Nowitlookslikethis:

    
asked by anonymous 10.08.2018 / 03:55

1 answer

1

I had problems also using ready-made themes, it was related to the wrong directory, according to its angular.cli the directories were pointing to the wrong location:

"node_modules/",

That should be:

"../node_modules/",

Whenever you make any changes to the angular.cli it is necessary to recompile the project with ng server to apply the new changes.

    
10.08.2018 / 16:55