Is. fetch () is called. It is built already in the majority of the modern browsers so if to you from jQuery it is necessary only AJAX it is possible and to manage without it (yes, for those browsers which do not support is ). Here here can esteem.
For not strong minds - a deadly piece.
For example, I do so
I describe the adapter which carries all about request and a name (it is easy for tests API)
' order.mml-bonus-forecast ';
url: ' web/orderEditor/mmlBonusForecast ';
params: function (params)
return params && params.guid
which lifts given not the automatic machine, can pull the adapter somehow so (strongly from fetch differs?)
this.model.forecast = model;
Method find I will not be, I will tell only that it pending pulls a method of the adapter and to me it is unimportant, as the adapter, through fetch $.ajax or XHR is implemented.
It is the normal system, all my adapters lie in one place and are easily supervised, all "new" inventions force the people directly in the logician, on 100 times palming off , the data not , there is no possibility to supervise all requests and generally to read source codes.