Hi,
To understand py4web and vue, I am trying the following:
There is a grid example in the vuejs.org and I like to transfer it to py4web app (page index.html).
|
Grid example in vuejs.org |
Py4web |
the component template |
<script type="text/x-template" id="grid-template"> |
/components/demo-grid.html One div |
the component script |
Vue.component("demo-grid", { … |
/components/demo-grid.js Props Data Computed Filters Methods register_vue_component |
Root element |
<div id = “demo” … <demo-grid> … |
/templates/index.html
|
Bootstrap the demo |
new Vue({ el: ‘#demo’, data: …
|
? |
<style> |
|
? |
Where is the location of ‘new Vue.data’ and <style> in py4web?
Regards,