February 2015
Intermediate to advanced
232 pages
4h 40m
English
In the case of mocks, we need to require the Mockjax and the Mockjson library, as follows:
define([
'jquery',
'mockjson',
'mockjax'
], function ($, mockjson, mockjax) {
$.mockJSON.data.PRODUCTNAME = [
'T-SHIRT', 'SHIRT', 'TROUSERS', 'JEANS', 'SHORTS', 'GLOVES', 'TIE'
];
...
});Read now
Unlock full access