Why is two-way databinding in AngularJS an antipattern?

前端 未结 2 531
花落未央
花落未央 2021-02-02 10:46

AngularJS offers two-way databinding.

I built several AngularJS apps and found two-way databinding to be a powerful feature, that increased my productivity.

Rece

2条回答
  •  臣服心动
    2021-02-02 11:01

    Two-way data binding can be its own problem: a model can update a view which can update a model which can update another model... Unidirectional data flow is more predictable.

提交回复
热议问题