Hello
I'm trying to use vuejs in web2py.
Someone knows how to use vuejs in web2py?
I have this file named 01.js
const VueApp = new Vue({
el:'#ejemplo',
data:{
titulo:'Hola mundo con vue'
}
});
in my view default index I have this:
<div id="ejemplo">
<h1>{{titulo}} </h1>
</div>
The vue instance is working
I have this message in the console in chrome:
>VueApp.titulo
How can I get the value from vue?
<div id="app"> {{ message }} </div>
|
var app = new Vue({ el: '#app', data: { message: 'Hello Vue!' } })
|