0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 17:00:40 +01:00
svelte/test/runtime/samples/ignore-unchanged-attribute/main.html

16 lines
210 B
HTML
Raw Normal View History

<p>{{x}}</p>
2017-08-14 17:34:24 +02:00
<p class='{{myHelper(y)}}'></p>
<script>
2017-08-14 16:48:14 +02:00
import counter from './counter.js';
export default {
helpers: {
myHelper(value) {
2017-08-14 17:34:24 +02:00
counter.count += 1;
return value;
}
}
};
</script>