最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Vue.js and Observer Pattern - Stack Overflow

programmeradmin2浏览0评论

Is data binding or event handling of Vue.js associated with Observer pattern of Design Pattern?

I listened from my co-worker. He said Frontend-framework's data binding or event handling is associated with Observer Pattern. He also said 'If you wanna know about two-ways-binding, I think you should research observer-pattern'

Is data binding or event handling of Vue.js associated with Observer pattern of Design Pattern?

I listened from my co-worker. He said Frontend-framework's data binding or event handling is associated with Observer Pattern. He also said 'If you wanna know about two-ways-binding, I think you should research observer-pattern'

Share Improve this question edited May 8, 2017 at 6:15 Lutece asked May 8, 2017 at 5:39 LuteceLutece 1271 gold badge1 silver badge6 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 11

Vue's Reactivity system is definitely an example of the Observer Pattern:

https://v2.vuejs/v2/guide/reactivity.html

发布评论

评论列表(0)

  1. 暂无评论