SteveSanderson/knockout — Issue #366: API Inconsistencies
Author: troyji
Created: 2012-03-07 15:49:20+00:00
State: open

I have been using Knockout for some time and have noticed several inconsistencies across the API. I recommend standardizing these items in order to accomplish a more polished feel and to reduce the learning curve. Here are some of the more outstanding items.

## Keyword Case
Some multi-word bindings use lower case (e.g. 'foreach', 'ifnot', 'hasfocus'), while some use camel case (e.g. 'dependentObservable', 'selectedOptions', 'uniqueName').

## Binding Options
Some bindings take an optional options object (e.g. "template: { name: 'myTmpl', foreach: myList }") while others take multiple bindings as options (e.g. "options: myOpts, optionsCaption: 'My Capt', optionsText: 'Text'" ).