如何在 Rails 中搭配 Turbolinks 使用 Vue

2017-08-09
阅读 5 分钟
4.6k
建立 vue_adapter.js,在 import Vue 的地方要載入 vue.esm.js 可以 compile template 的版本。另外要把需要使用到的 Vue Component 在這裡執行註冊: