0👍
✅
The answer to this had to do with how coffeescript compiles it’s variables. It inserts var
to all variables not allowing them to be accessible by the global namespace. All that is required is the app
to be a property of the window
object.
$(document).on "turbolinks:load", ->
window.app = new Vue
el: '#app'
data:
message: 'Vue initialized!'
Source:stackexchange.com