Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- axios.get('news').then(response => {
- this.news = response.data.response.news;
- }).catch(error => {
- // Show error
- });
- // Запрашиваемая страница: /api/news/
- // Ответ в формате:
- // response: {
- // news: []
- // }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement