Skip to content

Update state-management.md #2486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

adamwirth
Copy link
Contributor

making the code examples consistently use const instead of switching to var as you scroll down on https://vuejs.org/v2/guide/state-management.html#Simple-State-Management-from-Scratch

making the code examples consistently use `const` instead of switching to `var` as you scroll down on https://vuejs.org/v2/guide/state-management.html#Simple-State-Management-from-Scratch
@NataliaTepluhina
Copy link
Member

Thank you for your contribution! We're using ES5 intentionally on Vue 2 docs, this will be changed on Vue 3 docs.

@adamwirth
Copy link
Contributor Author

oh, maybe the block in this same file:

const sourceOfTruth = {}
const vmA = new Vue({
  data: sourceOfTruth
})
const vmB = new Vue({
  data: sourceOfTruth
})

should be var then?

@adamwirth adamwirth deleted the patch-1 branch February 19, 2020 16:11
@phanan
Copy link
Member

phanan commented Feb 19, 2020

@adamwirth Indeed! Would you want to send a PR for it?

adamwirth added a commit to adamwirth/vuejs.org that referenced this pull request Feb 19, 2020
use `var` consistently. previous PR was using `const`, it should be using `var`. ref: vuejs#2486 (comment)
@adamwirth
Copy link
Contributor Author

@adamwirth Indeed! Would you want to send a PR for it?

Ok! I made a new PR 😄

phanan pushed a commit that referenced this pull request Feb 19, 2020
use `var` consistently. previous PR was using `const`, it should be using `var`. ref: #2486 (comment)
vuejs-jp-bot pushed a commit to vuejs-jp-bot/jp.vuejs.org that referenced this pull request Feb 19, 2020
use `var` consistently. previous PR was using `const`, it should be using `var`. ref: vuejs/v2.vuejs.org#2486 (comment)
potato4d pushed a commit to vuejs/jp.vuejs.org that referenced this pull request Feb 19, 2020
use `var` consistently. previous PR was using `const`, it should be using `var`. ref: vuejs/v2.vuejs.org#2486 (comment)

Co-authored-by: Adam Wirth <[email protected]>
Jinjiang pushed a commit to vuejs/v2.cn.vuejs.org that referenced this pull request Apr 7, 2020
use `var` consistently. previous PR was using `const`, it should be using `var`. ref: vuejs/v2.vuejs.org#2486 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants