vuejs의 데이터로 앱을 초기화하는 방법 Foo라는 단일 파일 구성 요소를 사용하고 있습니다. This is the app. X is {{ x }}, y is {{ y }} 그리고 다음과 같이 앱을 초기화합니다. // somewhere here 'node' gets set to a DOM node, // and 'y' is created. import Vue from 'vue'; import Foo from './Foo.vue'; const app = new Vue({ 'el': node, data: {y}, render: h => h(Foo) }); 이는 'y'가 실제로는 단순한 문자열이 아닌 오브젝트라는 점에서 지나치게 단순화된 것입니다.그게 차이를 만든다면. 아이 컴포넌트의 소품 등을 건네주는 방..