Update readme fixed typos (#22587)
This commit is contained in:
@ -20,14 +20,14 @@ When jumping to production, this:
|
|||||||
```
|
```
|
||||||
|
|
||||||
As mentioned before, you can also install the `vue-cli`, but this is not
|
As mentioned before, you can also install the `vue-cli`, but this is not
|
||||||
recomended for beginners.
|
recommended for beginners.
|
||||||
|
|
||||||
## Declarative Rendering
|
## Declarative Rendering
|
||||||
|
|
||||||
Vue.js is a great tool for creating dynamic pages, and a first way to get in
|
Vue.js is a great tool for creating dynamic pages, and a first way to get in
|
||||||
touch with that is what's called Declarative Rendering.
|
touch with that is what's called Declarative Rendering.
|
||||||
|
|
||||||
The use of term "declarative" intends to straighten this concept to
|
The use of term "declarative" tends to straighten this concept to
|
||||||
declarative languages, such as SQL: you order something, it's not implied
|
declarative languages, such as SQL: you order something, it's not implied
|
||||||
any implementation. Vue.js allows you to declare what data you want to be
|
any implementation. Vue.js allows you to declare what data you want to be
|
||||||
rendered, as simply as that:
|
rendered, as simply as that:
|
||||||
@ -53,7 +53,7 @@ Vue.js manages to reload that specific part of the DOM and you see the
|
|||||||
change.
|
change.
|
||||||
|
|
||||||
If you want to try this reactivity out, open the console and change the value
|
If you want to try this reactivity out, open the console and change the value
|
||||||
of `app.message` to say, `"Hello from console"`. Did you notice the change in
|
of `app.message` to, say, `"Hello from console"`. Did you notice the change in
|
||||||
the page?
|
the page?
|
||||||
|
|
||||||
The `{{ ... }}` is the syntax for that behavior: outputting the value
|
The `{{ ... }}` is the syntax for that behavior: outputting the value
|
||||||
@ -66,7 +66,7 @@ will result in `hello`:
|
|||||||
</div>
|
</div>
|
||||||
```
|
```
|
||||||
|
|
||||||
There're cases in which what we want is to set an attribute using our Vue app's
|
There are cases in which what we want is to set an attribute using our Vue app's
|
||||||
variable. You might think that the same syntax applies, but Vue has something
|
variable. You might think that the same syntax applies, but Vue has something
|
||||||
specific for that, what we call "binding".
|
specific for that, what we call "binding".
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user