Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4837

AJAX alternative to jQuery

$
0
0

@josh_hardy wrote:

I am not thrilled with the verbosity of jQuery's ajax syntax. Is it possible to use something other than jQuery when fetching data?

I really like axios as a simple and terse alternative to jQuery.ajax/get/post. It has more options and is much more lightweight than jQuery's old syntax.

So I tried installing axis.

npm install axios --save
import axios from 'axios';

That didn't work, and maybe it should have? Build failed, and I'm not sure why.

bower install axios --save
app.import(....);

That didn't fail, but it also didn't work.

Any thoughts?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4837

Trending Articles