block by nitaku 9933ee9ec46aacb1fe2d0d54840c84c9

Vue.js shared state

Full Screen

Like in the previous example, two Vue.js components are instantiated, each one displaying a different matrix of numbers. In this example, the two views have a notion of shared selection (the orange square). You can click another square to change the selection in both views.

index.js

index.html

index.coffee

index.css