I'm trying to provide a number of clicked link to click handler. For some reason it provides the whole knockout model, instead of the $index. Here's jsfiddle: http://jsfiddle.net/yaroslavya/hfWs8/13/
Asked
Active
Viewed 1,303 times
1 Answers
2
The first argument to .bind
determines what this
will be in the handler. So, you can either pass $index
as the second argument or operate on this
in your handler with your current code.

RP Niemeyer
- 114,592
- 18
- 291
- 211