knockout-decorators
Advanced tools
Changelog
[2.0.0] 2019-08-05
knockout
package insted of @types/knockout
#17 #18Changelog
[1.2.2] 2018-09-28
package.json
#4Changelog
[1.2.0] 2018-08-30
@observable({ expose: true })
option@observableArray({ expose: true })
optionWith { expose: true }
flag hidden ko.observable
can be accessed through
non-enumerable property with same name prefixed by _
.
Thanks to @FlorianBruckner.
Changelog
[1.0.0] - 2017-04-03
@observable({ deep: true })
option@observableArray({ deep: true })
option@computed({ pure: false })
option@reactive
decoratorIn v1.0.0 @reactive
decorator was replaced by @observable({ deep: true })
option
Changelog
[0.10.0] - 2017-03-29
Disposable()
mixinDisposable()
mixin injects to class:
.subscribe()
method, an alias for subscribe()
utility function.dispose()
method. It disposes all subscription created by .subscribe()
method.unwrap()
method, an alias for unwrap()
utility functionChangelog
[0.9.1] - 2017-02-01
@reactive
(deep observable) decorator. It can be used for recursively
observing nested object's properties (see #3)@event
decorator. It creates hidden ko.subscribable
for class propertyObservableArray.set(index, value)
methodObservableArray.mutate(() => {...})
methodsubscribe()
function can be used with @event
decoratorsubscribe()
function can subscribe to "arrayChange"
Knockout event