ajout de la boucle au bon endroit
This commit is contained in:
parent
d16d66cd83
commit
53adde4895
1 changed files with 2 additions and 1 deletions
|
@ -15,12 +15,13 @@ fetch(API_URL)
|
||||||
})
|
})
|
||||||
.then(responsFormat => {
|
.then(responsFormat => {
|
||||||
console.log(responsFormat);
|
console.log(responsFormat);
|
||||||
|
for(let index = 0; index <6; index++){
|
||||||
NOM.innerText = responsFormat.data[0].last_name;
|
NOM.innerText = responsFormat.data[0].last_name;
|
||||||
PRENOM.innerText = responsFormat.data[0].first_name;
|
PRENOM.innerText = responsFormat.data[0].first_name;
|
||||||
IDENTIFIANT.innerText = responsFormat.data[0].id;
|
IDENTIFIANT.innerText = responsFormat.data[0].id;
|
||||||
EMAIL.innerText = responsFormat.data[0].email;
|
EMAIL.innerText = responsFormat.data[0].email;
|
||||||
AVATAR.src = responsFormat.data[0].avatar;
|
AVATAR.src = responsFormat.data[0].avatar;
|
||||||
|
}
|
||||||
|
|
||||||
for(let index = 0; index <6; index++){
|
for(let index = 0; index <6; index++){
|
||||||
console.log(data[0]);
|
console.log(data[0]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue