You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
443 B
31 lines
443 B
let linkService = new LinkService();
|
|
linkService.getLinks();
|
|
|
|
|
|
let api = new ApiService()
|
|
|
|
|
|
let res = api.get(2)
|
|
|
|
|
|
async function showGets(id)
|
|
{
|
|
|
|
console.group("main.js")
|
|
let api = new ApiService()
|
|
|
|
let res = await api.get(id);
|
|
|
|
let array =[]
|
|
|
|
for (let i = 0; ii < 5; ii++) {
|
|
array.push(res.articles[i]);
|
|
|
|
}
|
|
console.log(res.articles[0])
|
|
|
|
console.groupEnd("main.js")
|
|
|
|
return array;
|
|
}
|