🥊 Technical Knockout – The Monorepo for Knockout.js (4.0+)
knockout-fast-foreach
library by @mattbarkerdev in https://github.com/knockout/tko/pull/88
all
default target to depend on the package-loc… by @brianmhunt in https://github.com/knockout/tko/pull/137
objectLookup
with canonical Map
by @brianmhunt in https://github.com/knockout/tko/pull/171
Full Changelog: https://github.com/knockout/tko/compare/v4.0.0-alpha3...v4.0.0-beta1.3
From the CHANGELOG:
dist/ko.js
dist/tko.js
(that exported tko
) has been deprecated/removedonce
, then
, when
, yet
, and next
functions&&
/ ||
) operatorsko.applyBindings
now returns a Promise that resolves when bindings are completedattr
binding #27options.Promise
, so users can use a their own or a safe Promise variant of A+/Promises (defaults to window.Promise
)styles
attribute (e.g. style="color: {{color}}"
) in the AttributeMustacheProvider
, by adding attributesBindingMap
parameter.This is the second alpha of TKO.
It incorporates a number of changes, fixes a number of edge cases (particularly with the parser), and incorporates the last pre-release binding plugin, fast-foreach.
-1
work, as well as variables -x
and expressions -(x + y)
foreach
binding (based on brianmhunt/knockout-fast-foreach)each
as an alias of foreach
(x || y).z
or (abc || {x: null})['x']
)() => ...
) lambdas|
template
binding expose a conditional for else-bindingobj.x
uses this
of obj
where x
is a function (e.g. click: model.onClick
has this
of model
)obj.x
only uses obj
as this
when x
is a prototypal method (and not just a value)this
(as $data
)value|filter1|filter2
)