yalabot / angular-foundation

http://pineconellc.github.io/angular-foundation/
Other
1.05k stars 267 forks source link

rating not working with an "Unexpected end of expression" enter(NaNndex #237

Open drone-ah opened 9 years ago

drone-ah commented 9 years ago

I couldn't get to the bottom of why it was interpreting $i as NaN and then suffixing the ndex on to it.

There is a workaround for it however, within the same tag, I put in an ng-init="idx = ($index + 1)" and then change enter and rate calls to use idx instead.

For some strange reason, if I put $index as a parameter in the callbacks, it gets replaced as NaNndex.

It could very well be due to a special case on this particular setup...