mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-30 08:56:14 +01:00
16 lines
210 B
HTML
16 lines
210 B
HTML
<p>{{x}}</p>
|
|
<p class='{{myHelper(y)}}'></p>
|
|
|
|
<script>
|
|
import counter from './counter.js';
|
|
|
|
export default {
|
|
helpers: {
|
|
myHelper(value) {
|
|
counter.count += 1;
|
|
return value;
|
|
}
|
|
}
|
|
};
|
|
</script>
|