I am very new to ember js 2.13. I have a component and have defined actions in them. How do I go about making multiple ajax calls based on differing payload. Any tips or samples will be appreciated.
for (var i = 0; i < emails.length; i++) {
//prepare Data
var payload = {
"data": {
"email": "email1",
}
}
payLoadList.push(payload);
}
payLoadList.forEach(function(object){
adapter.ajax(adapter.getFullUrl("email"), 'POST', {data: object});
}
Aucun commentaire:
Enregistrer un commentaire