I'm new to working with Ember.js and I am attempting to create a simple checkered table. In my project, I am utilizing Bootstrap 4, ember-composable-helpers, and Handlebars. Is there anyone who can guide me on achieving this goal WITHOUT the use of javascript?
Below is the code snippet from my design, and I'm struggling with incorporating logic into the #if HBS helper:
<h1>Table</h1>
<table class="w-100">
{{#each (range 0 5) as |row|}}
<tr class="">
{{#each (range 0 5) as |cell|}}
{{!-- HOW DO I GIVE A TRUTHY VALUE FOR CELL == 1??? --}}
{{#if cell == 1 }}
<td class="bg-dark">{{cell}}</td>
{{/if }}
{{/each}}
</tr>
{{/each}}
</table>
Would using a ternary class be a viable option? If so, how should I go about implementing it?