See the following jsFiddle link: http://jsfiddle.net/7gS6N/.
I'm trying to perform some simple field-level validation through knockout js.
Click "Add Error" to simulate adding an Error for the Name field.
When an error is added to the Errors collection, the css bindings fire, the expression evaluates to true and the css class is applied.
This is great, but how can I make my css binding expression property specific?
css: { error: Errors().length > 0 }
I only want the Name field to show the css class.
Thanks!