|
|
|
|
|
by pfooti
3956 days ago
|
|
Two way data binding is awesome and neat and shiny and chrome. It's also pretty slow; a lot of pragmatic angular work involves keeping the number of watchers firing during digest cycles minimized. If you have a lot of data that's all two-way-bound by default, but aren't making any use of the bindings, that's a lot of wasted cycles. I mean, my app has a lot of data in it, stuff like {{username}} which rarely ever changes in the model, so I don't really need two-way binding for it. What I like here is that one-way binding is the default, and you can do two-way stuff if needs be, because sometimes it really is the best call. |
|