I want to implement the virtual element like
<!-- ko if: $index() > 9 && $index() < 20 -->
but it does not executed. Please help me for it.
I want to implement the virtual element like
<!-- ko if: $index() > 9 && $index() < 20 -->
but it does not executed. Please help me for it.
Use your DOM inspector to make sure that the comment node for your virtual element actually contains ampersands; the problem could either be that something that should be HTML-escaped isn't or that something that's already HTML-escaped is getting double-escaped.
Your server should be sending out
<!-- ko if: $index() > 9 && $index() < 20 -->
in order for the browser to create a comment node with the correct syntax for Knockout to parse. Use a tool like Curl to verify that it is.
Check this out: http://jsfiddle.net/y3KV2/
What you had there works, but it might be that you are missing something else, so I made this little small simple example so you can see how it works.