#trying tom implement springboot in agular
63 messages Β· Page 1 of 1 (latest)
SpringBoot is not meant to be added in an Angular Application.
SpringBoot is a framework for backend applications.
yeah but need it in there to connect the frontend with backend
and sent data to my database
That's not how it works.
my uni wants it so it is possible
Angular communicates with the backend application (SpringBoot or whatever) with HTTP request. Angular doesn't not even know which framework is used on backend side.
It's not possible.
it is lol
Then ask your uni if they know better.
About Bootstrap, it's encouraged to add it in Angular by using one of the Angular lib wrapper, like ng-boostrap: https://ng-bootstrap.github.io/#/home
Bootstrap widgets for Angular: autocomplete, accordion, alert, carousel, datepicker, dropdown, offcanvas, pagination, popover, progressbar, rating, scrollspy, tabset, timepicker, tooltip, typeahead
The ng add command will not only install Bootstrap dependancy but update your files to add proper configuration for an Angular application.
just following who said that in udemy and they want us to follow it
Just ignore this part and use ng-bootstrap: once added it'll be exactly about the same to use bootstrap. It just avoid struggling about the installation as you do.
just getting a headache from this sh
copied the pathfile but will still be annoying
I understand, we have people struggling with the installation here on a regular basis as you might not know ng-bootstrap when learning.
Remove bootstrap from package.json and the changes you made in angular.json and styles.css before running ng add @ng-bootstrap/ng-bootstrap
but why does the maximus guy do it that why then you know him?
This part might be somehow outdated.
No, if you look at your last screenshot, it tells styles.scss file was updated
run ng serve
Here's an explanation on adding the bootsrap library: #off-topic message
It's still recommended to use something like ng-bootstrap, but I assume that the course just uses the generic bootstrap library
don t have this
You do not need to follow these steps anymore, just run ng serve, it should work
remove the red line from your styles.scss file and add the import in angular.json like Mickael just showed (not starting with '../')
had that alr
yes
also added the scripts but still the errorπ₯²
you removed the line from styles.scss?
the @import?
yes
It's imported thanks to this change by now
try to restart ng serve
That's more likely empty due to your app.component.html being empty too
will add some stuff later but empty for now just hope this way with springboot won t effect the course to much and gives me more trouble with springboot
@knotty whale I'm not sure which version of bootstrap is used in the course, did you install the exact same version? If yes, you should not encounter any issues following along
Recently bootstrap has changed so older code/snippets might not work with the new version.
did this course had @3
so dunno
change the bootstrap in package.json to "bootstrap": "^3.4.1"
and the thing i made with bootstrap in intellij is prob newest but that shoule be fine
delete reinstall?
change the file with the new version and run npm install
There are some changes to selectors in newer versions, but if you are on the same major version (3 sounds right for this course) it will be no issue