4 ms·
The ugly in this article isn't really the ugly, it's the good. Nobody's holding you back from writing a simple ES6 module that handles API requests for you. Vue
by mmcnl 8y ago
The ugly in this article isn't really the ugly, it's the good. Nobody's holding you back from writing a simple ES6 module that handles API requests for you. Vue is a view layer, nothing more and nothing less.
- k__ 8y agoPeople aready hated on this with React, why should they stop with Vue? :D I guess Ember and Angular are more of one-stop-shops in that way.
- enraged_camel 8y agoThis is what I do and it works wonderfully.
- narrowtux 8y agoTo be fair, being used to full frameworks such as angular, you think that you have to do it in some kind of vue-way or react-way. I even made the mistake of using a vue-specific HTTP library when I started. Only later I learned that Vue and react give you the freedom to do whatever you want.
- Too 8y agoGreat comment. Seeing all the hate Angular gets I think this is the biggest mistake people do when they use angular, they try to do everything the angular-way with an angular service for everything, like you say even getting a angular-specific HTTP library, wtf?! They should have just removed the whole concept of services to not confuse people. If you instead only use it as a view layer it is actually quite nice. Same with vue and react, you should only use it as a view layer, not build your entire business logic on top or around of it!