简体   繁体   中英

Vue.js and 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'

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM