Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot write to an observable received as param inside of component #62

Open
herbertpimentel opened this issue Feb 23, 2017 · 0 comments

Comments

@herbertpimentel
Copy link

herbertpimentel commented Feb 23, 2017

KO components receives a reference of observable when we passes it as params. As componentes receives it as a reference you can write to this observable and it will reflect on your viewmodel;
But, when you using ko-es5 plugin (super awesome) your KO component instead of receive also a reference to your observable receives some kind of computeObservable, and we cant write to it. is this a unexpected behaviour ?
http://jsfiddle.net/kapuca/k0fw8w18/

http://jsfiddle.net/kapuca/jwea6zaL/

workaround: http://stackoverflow.com/questions/42427516/cannot-write-to-an-observable-received-as-param-inside-of-knockoutjs-component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant