Files
Mastering-Node.js-Web-Devel…/Chapter 10/End of Chapter/part2app/templates/client/counter_client.handlebars
T
2024-05-29 18:54:49 +01:00

15 lines
398 B
Handlebars

<button class="btn btn-primary m-2" action="incrementCounter">
Increment
</button>
<div>
{{#if (isOdd counter) }}
<h4 class="bg-primary text-white m-2 p-2">
Client Odd Value: {{ counter }}
</h4>
{{else}}
<h4 class="bg-secondary text-white m-2 p-2">
Client Even Value: {{ counter }}
</h4>
{{/if}}
</div>