by stanep · 6y ago · 0 comments
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_
No comments yet.