Last active
November 11, 2018 22:01
-
-
Save PierBover/bb62bf09944fb65b38bd240b3eadffab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var store = { | |
counter: 0, | |
addOne () { | |
this.counter ++; | |
} | |
}; | |
var componentA = new Vue({ | |
data: { | |
counter: store.counter | |
} | |
}); | |
var componentB = new Vue({ | |
data: { | |
counter: store.counter | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment