3 ms·
I work with angular and I'm scared badly of two-way data binding. I moved it to only work with simple fields as you described, but even in that case ended up be
by Fire-Dragon-DoL 10y ago
I work with angular and I'm scared badly of two-way data binding. I moved it to only work with simple fields as you described, but even in that case ended up being a problem. Once the bug was detected, in the end you need some kind of local variable (local to the component) to avoid the two-way data binding change causing weird behavior outside (things change from down to up, urgh.)
Be careful, long term two way databinding bites badly. The best idea is still a simple event when the value change, and trigger the change from top to bottom, not bottom-top