summaryrefslogtreecommitdiff
path: root/vue-notes.md
diff options
context:
space:
mode:
Diffstat (limited to 'vue-notes.md')
-rw-r--r--vue-notes.md22
1 files changed, 14 insertions, 8 deletions
diff --git a/vue-notes.md b/vue-notes.md
index 9eadaf8..6e2fe93 100644
--- a/vue-notes.md
+++ b/vue-notes.md
@@ -50,12 +50,12 @@ In addition to those objects:
- *Templates*: Vue has its own HTML templating language, that allows
us to write markup such that Vue knows how to make it *reactive*.
- It's just plain HTML, but with (1) user-defined custom elements
- (via *components*), and (2) Vue-defined and user-defined custom
- attributes (via *directives*). If you don't like writing raw HTML,
- that's fine, you could write it via PUG or any other
- compile-to-HTML language, since Vue templates are *just HTML*.
- From the JavaScript, they are just plain strings.
+ It's just plain HTML, but with (1) Vue-defined and user-defined
+ custom elements (via *components*), and (2) Vue-defined and
+ user-defined custom attributes (via *directives*). If you don't
+ like writing raw HTML, that's fine, you could write it via PUG or
+ any other compile-to-HTML language, since Vue templates are *just
+ HTML*. From the JavaScript, they are just plain strings.
- *Render functions*: Ultimately, *templates* compile to render
functions. If your application design and toolchain
@@ -247,12 +247,16 @@ this.
I'm a big advocate of learning about things by reading the source. Be
aware that Vue is written in a JavaScript superset language called
-[Flow][] that adds typechecking, similar to TypeScript.
+[Flow][] that adds typechecking, similar to TypeScript. When reading
+the official docs, their notation for types seemed a little weird to
+me; it seemed that Java-like notation would have more intuitively
+conveyed a few constructs--until I realized that they were using Flow
+notation.
* Global API
- `Vue.nextTick`
- `Vue.filter`
- - `Vue.use`
+ - `Vue.use` (plugins)
- `Vue.mixin`
- `Vue.version` return the Vue version as a String
@@ -262,6 +266,8 @@ believe that templates compile to a render function (via
`vue-template-compiler`), either at run-time, or at bundle-time if
possible.
+# options
+
[MVVM]: https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93viewmodel
[W3C Custom Elements]: https://www.w3.org/TR/custom-elements/#concepts
[Flow]: https://flow.org/