(solved) #each @index does not want to work in my app


#1

Hello,
any ideas why @index is not working for me ?

Roberts-MacBook-Pro:.meteor shock$ grep -iE 'blaze|space|template' versions | grep -v kukn
aldeed:template-extension@3.4.3
blaze@2.1.3
blaze-html-templates@1.0.1
blaze-tools@1.0.4
kadira:blaze-layout@2.1.0
peerlibrary:blaze-components@0.13.0
spacebars@1.0.7
spacebars-compiler@1.0.7
Roberts-MacBook-Pro:.meteor shock$ 
Roberts-MacBook-Pro:.meteor shock$ grep -i base versions  | grep -v kukn
accounts-base@1.2.1
base64@1.0.4
meteor-base@1.0.1
peerlibrary:base-component@0.10.0
Roberts-MacBook-Pro:.meteor shock$ 

iterating this way

   {{#each test}}
      {{@index}}: {{this}}<br/>
    {{/each}}

data context as “this” is printed OK, but @index no way.


#2

Hi, me too, Error: Unsupported directive: @index


#3

I had no error, but it was old blaze components package
after updating it works as a charm


#4

Can you list which packages you updated please?