Search code examples
ember.jsfastboot

ember: serialize object into url for ajax


I'm trying FastBoot in which I don't have access to jquery. Previously I was using jquery's param function:

Ember.$.param(urlData);

to serialize an object into a url for an AJAX request (I'm not using ember-data). I am pretty sure ember has something built-in to do this, but I can't find it! ember mega newb here. Thanks!


Solution

  • Use this as a substitute. https://github.com/knowledgecode/jquery-param

    You can load it via Bower and app.import or via npm and ember-browserify.