-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{{@index}} not working (generates a syntax error) #607
Comments
At first glance it appears that that should work. Can you create a jsfiddle demonstrating the issue? |
Here it is http://jsfiddle.net/SRKD5/1/ |
Somehow this is causing an empty field for the
I'm not clear if this is related to the handlebars library directly or an interaction between handlebars and the overrides that are implemented in ember. |
/cc @wagenet |
thanks @kpdecker I tried to figure out looking at the handlebars code, but cannot find a solution. |
Issue referenced in emberjs/ember.js#3030 |
I've found the solution by using {{_view.contentIndex}} |
What should I do for multiply each blocks? |
I strongly suspect that this is the same issue as #699. |
Hi, I've tried to output the index of an each loop, as documented in the handlebarsjs.com webpage, but it is not working. It fires a syntax error.
I've used the starter kit code, and only modified some lines:
Browser used: Chrome 29 (latest), OSX Mountain Lion
This produces this error:
Any clue of what's happening? Is a bug? Am I doing something wrong? Thanks
The text was updated successfully, but these errors were encountered: