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

The specified initialization vector (IV) does not match the block size for this algorithm