Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I believe with angular the http module is the way to go with angular.
I guess you'll have to compare the benefits and disadvantages of several tools on the backend to decide which one to use 🤔 -
I'm a Vue guy myself, i found axios is a great combination with it.
but there is also a GOLDEN rule for me in JS, if a library is not absolutely necesary don't add it. -
@alexbrooklyn is right. As a rule of thumb, if something exists within the framework, just use it.
-
@Commodore but I want to look cool. Hey look guys I'm so sophisticated I'm using a powerful premium Axios. Only few intelligent people use this. LOL kidding!
Ok I will just use the default ones :) -
@Devnergy so, you’re trying to let us know that - you know some girls? I’m not sure how this applies.
-
Use the framework. That’s what it’s for. Hundreds of really smart people made the decisions - for a reason. If you need to add in custom libraries... maybe it’s not the right framework for you. Also, fetch is native - so, why use axios(jQuery ajax) ?
-
@Devnergy you dirty dog :)
anyway... it won't happen with axios but i had a related situation with some composer package, i think it was for some qr codes. So naive as i was i pulled the damn thing and in every fucking document was QR code dependant from that package, and in development phase it worked... Later on it was time for a migration, i did a "composer install" and the fucking idiot did not only abandoned the package, but completely deleted it... so there i was, few days before the deadline with a GIGANTIC bug thruought the whole damn project... so... the less dependencies the less possible problems -
Konsole30495yI am not sure if it was my mistake or axios bug, but 3 months ago, I couldn't get axios working with cors authentication header
-
@Konsole I've been using axios for ages and never encountered such behavior so i'ld blame you 😅
Related Rants
Should i use Axios in my Mean stack or just the node or angular's native http calls?
What are the pros and cons of each?
Am I just complicating myself? 🤪
question
axios
angular