- 뷰에서 권고하는 Promise기반의 HTTP통신 라이브러리
- 자바스크립트 비동기 처리 패턴 (비동기처리에 사용되는 객체)
1. callback
2. promise (https://joshua1988.github.io/web-development/javascript/promise-for-beginners/)
3. promise + generator
4. async & await
**promise
<axios 설치>
- CDN방식
https://github.com/axios/axios:엑시오스 깃헙주소
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
- npm 방식
npm install axios
<script>import axios from 'axios'</script>
'vue.js' 카테고리의 다른 글
watch, computed 속성 (0) | 2023.04.20 |
---|---|
템플릿 문법 (0) | 2023.04.20 |
뷰 라우터 (0) | 2023.04.19 |
같은 컴포넌트 레벨간의 통신 (0) | 2023.01.11 |
뷰 인스턴스에서의 this (0) | 2023.01.11 |