Css binding in knockout js

One can multiple or single classes based on conditions using css binding.

In below example code, we have defined that if currentStockValue negative or equal to zero we will show stockDown and stockUp in case of value positive.

Leave a Reply