Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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'

like image 724
Lutece Avatar asked May 08 '17 05:05

Lutece


1 Answers

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

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

like image 64
Linus Borg Avatar answered Sep 25 '22 08:09

Linus Borg