You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/ignore-unchanged-attribute/main.html

16 lines
210 B

<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>