SHOW:
|
|
- or go back to the newest paste.
1 | axios.get('news').then(response => { | |
2 | this.news = response.data.response.news; | |
3 | }).catch(error => { | |
4 | // Show error | |
5 | }); | |
6 | ||
7 | // Запрашиваемая страница: /api/news/ | |
8 | // Ответ в формате: | |
9 | // response: { | |
10 | // news: [] | |
11 | // } |