Knockoutjs markup evaluation is javascript like

Lets say you have an observable called "totalRecordCount" and using the following code to evaluate if a markup should be visible.

data-bind="visible : $index < $root.totalRecordCount"

All these will be evaluated to false, until .........

data-bind="visible : $index() < $root.totalRecordCount()"

Seems like evaluation falls back pretty much to traditional javascript evaluation.


Popular posts from this blog

ionic2 cordova build android - Unable resolve gradle 2.2.3

A quick tutorial for OWASP ZAP tool for beginners