Knockout.js Cheat Sheet by mwvdlee via cheatography.com/2275/cs/3811/
Annotat ions ko.obse rva ble Arr ay( array) Control flow bindings
See elsewhere 1 See footnote () : []1 ([]) : vm foreach: []/{} with: observ able
? Optional R Ruby on Rails .pop() : item .push( it em) if: bool ifnot: bool
.shift() : item .unshi ft( it em) compon ent: observ able Viewmodel (JavaSc ript) .remove(item) .removeAll() var vm = function(value) { "f ore ach " control flow binding .index Of( it em) .rever se() t his .v ari able = : -/#1 data: [] as: string ko.obse rva ble (va lue); s e? : s l? afterRender: function }; .slice( , ) .splice( , , [] …?) : [] ko.appl yBi ndi ngs (new vm('...'), afterAdd: before Rem ove: DOM?); .sort( fun cti on( a, b)? : -/0/+2) function function function .destroy(item)R .destroyAll() R beforeMove: afterMove: Templates (HTML) function 1 Get length: ().len gth. Get item: () R