-
Is there a way to implement dependency injection using Knockout Components. I would like to be able to swap different implementations of a service in a component. For example I would like to use diffe…
-
```
jQuery: All versions
IE: All versions (Windows 10)
Knockout: 3.3.0
```
Calling `ko.applyBindings()` and then running `window.document.normalize();` and then pushing to an observable array caus…
paton updated
7 years ago
-
### Steps to reproduce
1. Open 'Symbols -> Color window'
- English:
![screenshot_en](https://user-images.githubusercontent.com/688044/36280452-61553378-12ab-11e8-91f4-31f4e09e9a19.jpg)
- Finnish…
-
The latest version of knockout appears to come with a Typescript definition file when install it with npm. This definition file seems to be pretty different from the latest one in @types/knockout, an…
-
In my app I have a view where the `foreach` binding is used with an observable array that's replaced when the user navigates somewhere else. Something like this:
``` html
```
This construct works f…
-
Taken from Knockout:
- It should take an object with properties and functions and use that as a ViewModel
- It should allow binding to be declared in HTML
- It should have a binding engine that p…
-
I'm in the process of modernizing my application moving it from AMD to ES modules. With the classic KO that was not possible and someone suggested to move to TKO, so I installed `4.0.0-alpha9.0`.
I…
-
See:
- https://github.com/knockout/knockout/issues/2589
- https://github.com/microsoft/TypeScript/issues/48150
```ts
// Broken
function observable(value: T): Observable
{
return undefined …
-
When creating observables manually via `ko.observable()` / `ko.computed()` / etc, it's sometimes useful to define an "on dispose" handler which executes when the observable is disposed (e.g. to clean …
-
I would like to implement something like this: https://github.com/erik-kallen/SaltarelleCompiler/issues/80#issuecomment-12699164 (custom properties).
I was looking into the Knockout implementation: h…