aurelia-contrib / aurelia-knockout

Adds support for Knockout binding syntax to make transition from Durandal and Knockout to Aurelia simpler.
MIT License
22 stars 4 forks source link

Knockout binding issue on Aurelia cached views #8

Closed mirkolugano closed 7 years ago

mirkolugano commented 7 years ago

Hi I am converting a web app from Durandal/Knockout to Aurelia CLI. I am successfully using the aurelia-knockout plugin, but I am having an issue when using view caching on Aurelia. I understand that view caching is still something which is "under construction" in Aurelia but I would like to know if this is a known issue or how if there is some workaround that I could use. My issue is described on this Stack Overflow post:

I know I can bypass the issue with KnockoutBindable but I was wondering if there was a 'cleaner' way to solve it.

Thank you in advance. If this is not the right place or way to submit such a request, please excuse me, and feel free to remove it.

ckotzbauer commented 7 years ago

Hi @mirkolugano, I check your problem at the moment. I can reproduce it and try to find a fix for it.

ckotzbauer commented 7 years ago

@mirkolugano The results of my investigation:

mirkolugano commented 7 years ago

Yes, I noticed yesterday that also using normal aurelia computeds which simply return the corresponding knockout variables does the trick. Thanx for investigating, I guess I will switch to Aurelia syntax everywhere.

ckotzbauer commented 7 years ago

closed