ajax
Specify the ajax functionality that should be used to make the request.
function(settings)
Provides an alternate function to be used to make ajax requests. By default ajax provides the ajax functionality. jQuery's ajax method can be substituted as follows:
connect([
require("can-connect/data/url/url")
],{
url: "/things",
ajax: $.ajax
});
Parameters
- settings
{Object}
:Configuration options for the AJAX request.
Returns
{Promise}
:
A Promise that resolves to the data.