Skip to content

First example in introduction doesn't demonstrate reactivity #253

Closed
@AjaiKN

Description

@AjaiKN

In the very first example in the new introduction, it says:

The data and the DOM are now linked, and everything is now reactive. How do we know? Change the message property in the code snippet below to a different value and the rendered example will update accordingly:

However, I'm not sure that changing the code snippet in the CodePen really demonstrates reactivity, since that seems to just restart the CodePen with a different initial state.

Those first examples in the v2 docs were helpful for me in understanding what reactivity means in Vue, so I wonder if it's worth changing the first and third examples to run directly on the page like in the v2 docs so that the app can be exposed to the console. As a reminder, the v2 docs said:

The data and the DOM are now linked, and everything is now reactive. How do we know? Open your browser’s JavaScript console (right now, on this page) and set app.message to a different value. You should see the rendered example above update accordingly.

Thank you all for your hard work!

Metadata

Metadata

Labels

discussionTopics to discuss that don't have clear action items yet

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions