0

The code below works fine in development. I get the number (@key) appended to my class 'step' to produce...'step0, step1, step2, ...) but it does not work in production. Any suggestions on how to get this to work in production?

{{#careers}}
     <div class="col-sm-{{{../size}}} emp text-center"><span class="emp-role">{{this}}</span><span class="step{{@key}}"></span></div>
{{/careers}}

The overall goal was to produce numbered 'step' classes.

I then had some css to handle step0, step1, step2 and step3.

.step0 {
   ...
}
.step1 {
   ...
}
.step2 {
   ...
}

I tried to do this with an nth-child() but couldn't get it work work.

Mithrilhall
  • 1,463
  • 8
  • 33
  • 51

1 Answers1

0

I was using {{@key}} when I should have been using {{@index}}.

Answer found here.

Mithrilhall
  • 1,463
  • 8
  • 33
  • 51