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 postpone evaluation to the moment when any other prope...
I have a Knockout Viewmodel that uses the mapping plugin. After mapping the JSON object, I create some computed values, like so:  /* viewmodel setup and mapping */  myViewModel     .formattedGiftAmount = ko.computed({         read: function () {...
I am trying to solve the problem where I have a two way computed observable and want that parsed into an observable array and have that change event bubble up. The problem is that the it appear to not be notifying subscribers.  Its best shown in jsfi...
I've been working on making my javascript app more scaleable. The app uses knockout.js to bind a grid of some type of database item to be editted and updated by the user. I'm now going down the path of working with inheritance and having a Ba...
I am trying to bind a computed observable which internally uses a observable array. The "read" method does get called while loading. But the "write" method does not get called when the values in the table are changed and the focus is...
I have a string pipe of values, which I want to modify. the string pipe has a range from 0-5 values, so I made the following:    new Vue({   el: '#app',   data: {     valuesString: ""   },   computed: {     values: {       get() {...
Setup:  I have multiple Vue components, and each component has multiple instances in different dialogs in my web app.  For each type of component I have a global state (handrailOptions in the example below) so that each type of component stays in syn...
I am using using the knockout.js library, which helps with data-binding. So I keep getting the error that my variables are not defined inside a computed function which is on we viewModel prototype. I know this is because the computed function is chan...
Given an array of objects with ids:  array: [     {id: 3, value: 'foo'},     {id: 6, value: 'bar'},     {id: 9, value: 'baz'},     // ... ],   What is the shortest way to return a single object from the array that matches an i...
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 changes to the computed observable would be b...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.