0
I’m trying to integrate the administration into my project, but I couldn’t
It’s like he can’t find the files
I already gave the npm i admin-lte --save-dev
I’ve 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 now with angular
There’s nothing in the default style.css yet, because I don’t know what it is to add
[EDIT 1]
Really after I stopped and again gave an ng serve showed.
Only we’re almost there
Now it’s like this:
already stopped the server and went up again? da a rebuild, sometimes did not compile the project, see if any error goes up in the log
ng server
check if the files are in the correct directory, I’ve had problems with it, go to the console and look at all the requests that gave error and try to tidy, the ones that are files for example.js
,.css
,.scss
– Hebert Lima
and all folders
node_modules/
are on a level above! you need to climb a level../node_modules
in all thestyles[]
andscripts[]
,of a conferred in the directories!– Hebert Lima
Really, only it’s still not that way, remembering that I use this template with Laravel, adding the necessary files and works well,
– adventistaam
It worked @Hebertlima! You can add as a response, actually, the bootstrap I was using was different from the template, I imported it from the template and it worked after your tip. 'Cause all I really cared about was updating the page
ng serve
again.– adventistaam
And I was also importing the files the wrong way
– adventistaam
https://github.com/TwanoO67/ngx-admin-lte
– Otto