$index is an observable, and observables are functions. When you use observables in an expression you must use the () form to access the value.
<!-- ko if: $index() === 0 -->
More Related Contents:
- Difference between knockout View Models declared as object literals vs functions
- Resolve circular references from JSON object
- How to create an auto-complete combobox?
- Knockout.js incredibly slow under semi-large datasets
- Change observable but don’t notify subscribers in knockout.js
- knockout data-bind on dynamically generated elements
- Setting value of Observable not updating in Knockout
- How to clear/remove observable bindings in Knockout.js?
- make an input only-numeric type on knockout
- Knockout + Bootstrap 3 Radio Buttons
- When to use ko.utils.unwrapObservable?
- Binding true / false to radio buttons in Knockout JS
- combine dynamic and static classes through css binding, knockout.js
- Knockout JS – How to correctly bind an observableArray
- Javascript Equivalent to C# LINQ Select
- Knockout JS mapping plugin without initial data / empty form
- Can you help me make my code a little simpler and shorter please? thanks [closed]
- How to subtract days from a plain Date?
- What is the meaning of the ‘g’ flag in regular expressions?
- Format date to MM/dd/yyyy in JavaScript [duplicate]
- adding ‘click’ event listeners in loop [duplicate]
- Validating user’s UTF-8 name in Javascript
- Upload files to Firebase Storage using Node.js
- How do you create a method for a custom object in JavaScript?
- Run javascript code in Webview
- Canvas Draw Image issue on firefox, works well in chrome
- Appended new row is not behaving like previous one (row)
- Big O of JavaScript arrays
- How to measure time elapsed on Javascript? [duplicate]
- Why does accessing a non-existent object property result in `undefined` instead of throwing a `ReferenceError`?