Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4831

Mutiple Ajax calls from an ember component

$
0
0

@M.Shah wrote:

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});
}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4831

Trending Articles