Tamamlanmış

I need to loop an array and use AXIOS in a Vue project and

I need to loop an array and make an axios API call to get some data returned. The loop can have 100 items in it and I don't want the loop to send another index until the axios call is done. I have tried a bunch of ways and the loop gets finished before the axios call is even started.

getSamplePMID() {

// var arr = [login to view URL]

[login to view URL] = true;

for (var index = 0; index < [login to view URL]; index++) {

let aff = [login to view URL][index]["Affiliations"].toLowerCase();

let affiliation = [login to view URL](',');

let FAU = [login to view URL][index]["Last_Name"]+ ', ' + [login to view URL][index]["First_Name"] +" " + [login to view URL][index]["MI"].slice(0, 1) + "[FAU]";

let AU = [login to view URL][index]["Last_Name"]+ ' ' + [login to view URL][index]["First_Name"].slice(0, 1) + [login to view URL][index]["MI"].slice(0, 1) + "[AU]" ;

let authorNames = "("+ FAU + " OR " + AU + ") "

let LastName = [login to view URL][index]["Last_Name"].toLowerCase()

let linkGetIdList = '[login to view URL]';

linkGetIdList += '&db=pubmed&';

linkGetIdList += 'term=' + authorNames +' AND ' + affiliation[0] + '[AD]';

[login to view URL](linkGetIdList).then((res) => {

let idlist = [login to view URL]

let passID = [login to view URL](',')

[login to view URL][index]["ORCID"] = "XXXX"

[login to view URL][index]["New_PMID"]= passID

}).catch(function(error) {

[login to view URL](error);

});

}

},

}

If you have worked with loop an array and axios then please bid if not please pass on this little project. It should be quite simple for a person who has done it before. All you have to do is to tell be how to fix my code.

Beceriler: Vue.js, Javascript

Daha fazlasını gör: hi i need to configure freepbx and asterisk upon a project we have really quick and easy stuff thanks, i need a business development manager for web development project, i need a character that has him caracteriscas counter-strike player plays with the awp weapon use of green razer headset a keyb, i need a character that has him caracteriscas counterstrike player plays with the awp weapon use of green razer headset a keyboa, i need a computer graphics designer for a project, i need a consultant to do a project, i need a consulting project, i need a crestron engineer for small project, i need a design for a bottle label this is for a vitamin water and it comes in 4 flavours it is quite simple as i already have a, i need a graphic designer for one project, i need a mnufacturer in the usa to make my clothing, i need an art student for my project, i need multiplayer backgammon game clientserver where opponents find each other in a lobby and play for fun money, i need a logo that suit a project called creek city development, i need a principal designer for a project in leamington spa, i need a programmer to develop a project, They like the look and layout of this site - www.texasprideseptic.com. I would like to use that layout, but make it look much cl, They like the look and layout of this site - www.texasprideseptic.com. I would like to use that layout, but make it l, They like the look and layout of this site - www.texasprideseptic.com. I would like to use that layout, but make it, I Need USA wholesalers Price List\ s at-least \ 100\ With UPC Code, Cost, And Description + Each Company\ s Contact Info Compan

İşveren Hakkında:
( 202 değerlendirme ) Charleston, United States

Proje NO: #23978550

Seçilen:

tizmo1928

Hi, i can help you do this but the code is not very clear, message me and i'll help you fix it .

1 gün içinde %selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% USD
(0 Değerlendirme)
0.0

Bu iş için 4 freelancer ortalamada $28 teklif veriyor

DoMyBestForU

I have rich experience in Vue.js. you have to call function in ajax. result part. I would like to talk about it over chat. Thanks.

$20 USD in 7 gün içinde
(1 Yorum)
1.5
loralawson13

❤️❤️❤️ Senior VUE Expert is here!!!! ❤️❤️❤️ I have read your description in detail and got a convinced I can complete this work with my heavy 7+ years experiences in full stack development. I fixed your problem alrea Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0
Cristina586

hi. I am a vue.js editer with more 3 years of experience. i am developed a vue.js website, but design type is very poor. but i will design better. please check this website. [login to view URL]

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0