<button on:click='foo()'></button>
<script>
export default {
methods: {
bar () {
// ...
}
};
</script>