Ajax is a service that is used to make direct ajax requests to the serverside from the client without using Ember's built in requests, such as save, browse, etc. There isn't much difference between this and Ember Ajax Service, which it extends. For full documentation, click here. One of the main differences between Ember Ajax and FW Ajax is that FW ajax is designed to work with the config service to automatically make the URL for you, and FW Ajax sets the content-type to JSON automatically.

The main difference between Ember-Ajax and Ember-FW Ajax is that we added an ability to force a SetupError to display a notification to the global outlet (see Notifications). Additionally, we always stringify the data passed to the server as JSON (so that you don't need to do that yourself), since our Serverside expects JSON data. This does not change how you use the ajax service at all, so there is no need to document each function we slightly tweaked. In each case, this._super(...arguments); is called as well.

This service is also extended by Ember FW GC, so if you intend to use the AjaxService, you should probably double check its documentation as well here.

For a basic example of how to implement the config (and ajax) service at the basic level, see our Conceptual Introduction - Advanced Topics.

Show: