Mustaches for event handlers added
Pre-release
Pre-release
·
282 commits
to master
since this release
From now on you can pass value dynamically to a handler using mustaches.
Example:
>div
>input
%value = {{info.message = Type your message here}}
>button
@click = sendMsg:{{info.message}}
.Send!
component.$methods.sendMsg = ({value}) => {
// Code on sending the message
console.log(`Message '${value}' sent!`)
}
Once you click that button, your handler will get the latest value from info.message