0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 08:56:14 +01:00
svelte/test/runtime/samples/ignore-unchanged-attribute/main.html
2017-08-14 11:34:24 -04:00

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>