Vue(2)
-
Vue + web3 - localhost에서 스마트 컨트랙트 사용하기
목표는 내 localhost 환경에서 작성한 스마트 컨트랙트를 vue3를 이용해 사용하는 것입니다. 간단한 스마트 컨트랙트 Solidity Docs에 가면 아주 기본적인 코드가 있습니다. 일단은 아주 간단한 함수라도 실행해보는게 목표이기 때문에 아래 코드를 사용하기로 했습니다. https://solidity-kr.readthedocs.io/ko/latest/introduction-to-smart-contracts.html 스마트 컨트랙트 소개 — Solidity 0.5.10 documentation 소개 Ethereum 가상머신, EVM은 Ethereum의 스마트 컨트랙트를 위한 런타임 환경입니다. 이것은 완전히 독립되어 있기 때문에 EVM 에서 실행되는 코드는 네트워크나 파일 시스템, 기타 프로세스들에..
2022.04.12 -
Vue + Laravel, input file component 를 부모 component에서 사용하기
Laravel 환경에서 Form template 아래에 ImageUpload template를 만들고 비동기 통신 테스트 예제 소스 ImageUpload.vue- input file과 image preview를 할 수 있는 template.- $.emit을 이용해 form emplate에 파일 정보를 넘겨준다. Add.vue- Form template.- input box와 위에 만들어준 image-upload에 v-model을 적용.- 전송은 axios를 이용. 이름 주소 Example file input Example file input 저장하기 App.js- component 추가 // 추가Vue.component('image-upload',require('./components/ImageUploa..
2018.03.21