computed-observable Questions

2

Solved

I am little bit confused by behavior explanation of deferred calculation defined on ko.computed variable. Such computed variable might be defined with property deferEvaluation: true which should p...
Silici asked 31/1, 2017 at 14:16

5

Solved

I would like to know how to create a computed observable array. In my view model, I have 2 observable arrays, and I would like to have a computed observable array that is simply both arrays combi...
Mycosis asked 2/7, 2012 at 18:3

5

Solved

Given a computed property vm.checkedValueCount = ko.computed(function(){ var observables = getCurrentValues(); //an array of ko.observable[] return _.filter(observables, function(v) { return v()...
Deanery asked 7/12, 2012 at 19:8

5

Solved

Is there a good way to roughly achieve the following concept: var computed = ko.computed(function() { readSomeObservables(); //<-- if these change, notify computed ko.stopCollectingDependenci...
Bureaucrat asked 30/1, 2013 at 12:19

2

Solved

I have an array of objects that are hooked up into a knockout observable array. I needed to apply sorting to these arrays and I ran into some behavior that is a bit confusing. My first attempt inv...
Fireboard asked 21/1, 2014 at 20:8

1

Solved

I am trying to use computed properties in another computed properties and when i run code i am getting following error in console. Cannot write a value to a ko.computed unless you specify a 'writ...
Josephinajosephine asked 3/10, 2013 at 10:26

2

Solved

Given the following HTML/JS (http://jsfiddle.net/mgs_jsfiddle/gUhm2/) <div data-bind="foreach: users"> <p data-bind="click: $root.onClick"> <span data-bind="text: id"></span...
Kopans asked 13/9, 2013 at 16:23

1

Solved

I have 3 observable variables in view-model, and want to output to formatted value. However, I don't want to write computed method for each of them since they are identical. What is the best way to...
Diella asked 21/12, 2012 at 20:13

1

Solved

When using knockout, what is the advantage of using read-only computed observables rather than simple functions? Take the following viewmodel constructor and html snippet, for example: ​ var View...
Ewens asked 17/7, 2012 at 17:31

2

Solved

I'm trying to wrap a cookie in a computed observable (which I'll later turn into a protectedObservable) and I'm having some problems with the computed observable. I was under the opinion that chang...
Faizabad asked 21/3, 2012 at 23:26
1

© 2022 - 2024 — McMap. All rights reserved.