now attributes and text are reactive

This commit is contained in:
Torsten
2023-02-07 18:56:28 +02:00
parent e93e4b0e38
commit 8a0461c98d
3 changed files with 15 additions and 5 deletions

View File

@ -3,11 +3,13 @@
= #@image.attributes
.flex.justify-center
%a.underline{ e_click: "hi" , r_class: 'bg'}
%a.underline{ e_click: "bg_change" , r_class: 'bg'}
{{ bg }}
:opal
class Clicker < VueR::Application
def bg_change
self.bg = "bg-cyan-50"
end
end
kanta = Clicker.new(bg: 'bg-cyan-200')