3 ms·
if you use https://www.transcrypt.org/ https://www.transcrypt.org/ you do not need node.js and with little work you can write Vue apps like this class MyApp(Vu
by stanep 6y ago
if you use https://www.transcrypt.org/ https://www.transcrypt.org/ you do not need node.js and with little work you can write Vue apps like this
class MyApp(VueBase):
def __init__(self):
self.el = "#app"
self.msg = "Hello from vue class"
def created(self):
print('Created')
def v_show(self, evt):
print('show method', evt)
def computed_title(self):
return self.msg + " Computed"
app = MyApp()
app.mount_to("#app")
#Vue methods declare with v_
#Computed and watch with computed_ and watch_