The Core module specifies the core EVT module and the client default settings. The library is built by adding functionality or sub-modules to EVT.
Version is updated from package.json using grunt-version
on build.
Setup default settings:
{
data: <JSON data>,
headers: <response headers map>
status: <HTTP status code>
}
var myInterceptor = {
request: function(options){
// do anything with options.data, options.headers, start spinner, etc.
return options;
},
response: function(result){
// do anything with result, stop spinner, etc. (can return promise)
return result;
}
}
Module definition and raw API.
Setup method allows the developer to change overall settings for every subsequent request. However, these can be overridden for each request as well. Setup merges current settings with the new custom ones.
Use the passed plugin features by requiring its dependencies and installing it.
Inject plugin dependencies as requested, using the synchronous require API for Require.js and Almond.js.
CORE.JS