@ryanto wrote:
This sounds like a question from 2005
Ha!
Ok, we go…
It seems that there are a handful of different ways to configure how an Ember application makes its network requests. Here’s what I’ve seen so far…
- jQuery/$.ajax
- fetch
- Fastboot node fetch polyfill
- Fastboot njax
I’m writing an addon that makes ajax requests and I want to be able to do it in a way that respects all of these different environments. So far I’ve been using ember-ajax, but it was recently pointed out to me that it relies on jQuery, which a number of Ember applications are no longer using.
So that got me thinking, what’s the best way to make a network request in an Ember addon?
Posts: 3
Participants: 3