Answers for "handlebarsjs each first element"

0

handlebarsjs each first element

{{#each foo}}
  {{#if @first}}
    <div class="item active">
      <div class="foo">{{this}}</div>
    </div>
  {{else}}
    <div class="item">
      <div class="foo">{{this}}</div>
    </div>
  {{/if}}
{{/each}}
Posted by: Guest on August-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language