mirror of https://github.com/sveltejs/svelte
parent
3595470305
commit
c7ac8b82ba
@ -0,0 +1,8 @@
|
|||||||
|
[{
|
||||||
|
"message": "'foo' is an invalid callee (should be one of this.*, event.*, set, fire or bar). 'foo' exists on 'helpers', did you put it in the wrong place?",
|
||||||
|
"pos": 18,
|
||||||
|
"loc": {
|
||||||
|
"line": 1,
|
||||||
|
"column": 18
|
||||||
|
}
|
||||||
|
}]
|
@ -0,0 +1,17 @@
|
|||||||
|
<button on:click='foo()'></button>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
methods: {
|
||||||
|
bar () {
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
helpers: {
|
||||||
|
foo ( x ) {
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
@ -0,0 +1,8 @@
|
|||||||
|
[{
|
||||||
|
"message": "'foo' is an invalid callee (should be one of this.*, event.*, set, fire or bar)",
|
||||||
|
"pos": 18,
|
||||||
|
"loc": {
|
||||||
|
"line": 1,
|
||||||
|
"column": 18
|
||||||
|
}
|
||||||
|
}]
|
@ -0,0 +1,11 @@
|
|||||||
|
<button on:click='foo()'></button>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
methods: {
|
||||||
|
bar () {
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in new issue