Closed zhangsuimi closed 6 years ago
There refactored it. File called: user-view-model.js should have 3 functions .... f() User(info) f() getCommonHeaders() f() handleErrors(response)
function getCommonHeaders() {
return {
"Content-Type": "application/json",
"Authorization": config.appUserHeader
}
}
This will fix your f() issue.... But I, in my case am not getting a response from my query.
I paste this code from the official website ,but something goes wrong,what should I do?I just started to learn this,please help me !thank you!
this is the related code:
this is the console log: