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.




Comments

Popular posts from this blog

ionic2 cordova build android - Unable resolve gradle 2.2.3

OpenCover code coverage for .Net Core

Using Custom DLL with IronPython / Scripts