Better HN
topnewbestaskshowjobs
Log inSign up

stanep

1 karma · joined Apr 17, 2020 (6y ago) · 1 submissions

Submissions

comment 6y ago · link · parent

if you use 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_