You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/v2/guide/deployment.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,11 @@ rollup({
65
65
66
66
## Pre-Compiling Templates
67
67
68
-
When using in-DOM templates or in-JavaScript template strings, the template-to-render-function compilation is performed on the fly. This is usually fast enough in most cases, but is best avoided if your application is performance-sensitive. The easiest way to pre-compile templates is using [Single-File Components](./single-file-components.html) - the associated build setups automatically performs pre-compilation for you, so the built code contains the already compiled render functions instead of raw template strings.
68
+
When using in-DOM templates or in-JavaScript template strings, the template-to-render-function compilation is performed on the fly. This is usually fast enough in most cases, but is best avoided if your application is performance-sensitive.
69
+
70
+
The easiest way to pre-compile templates is using [Single-File Components](./single-file-components.html) - the associated build setups automatically performs pre-compilation for you, so the built code contains the already compiled render functions instead of raw template strings.
71
+
72
+
If you are using Webpack, and prefer separating JavaScript and template files, you can use [vue-template-loader](https://github.com/ktsn/vue-template-loader), which also transforms the template files into JavaScript render functions during the build step.
Copy file name to clipboardExpand all lines: src/v2/guide/ssr.md
+4
Original file line number
Diff line number
Diff line change
@@ -327,3 +327,7 @@ To truly master server-side rendering in complex applications, we recommend a de
327
327
328
328
-[vue-server-renderer docs](https://www.npmjs.com/package/vue-server-renderer#api): more details on topics covered here, as well as documentation of more advanced topics, such as [preventing cross-request contamination](https://www.npmjs.com/package/vue-server-renderer#why-use-bundlerenderer) and [adding a separate server build](https://www.npmjs.com/package/vue-server-renderer#creating-the-server-bundle)
329
329
-[vue-hackernews-2.0](https://github.com/vuejs/vue-hackernews-2.0): the definitive example of integrating all major Vue libraries and concepts in a single application
330
+
331
+
## Nuxt.js
332
+
333
+
Properly configuring all the discussed aspects of a production-ready server-rendered app can be a daunting task. Luckily, there is an excellent community project that aims to make all of this easier: [Nuxt.js](https://nuxtjs.org/). Nuxt.js is a higher-level framework built on top of the Vue ecosystem which provides an extremely streamlined development experience for writing universal Vue applications. Better yet, you can even use it as a static site generator (with pages authored as single-file Vue components)! We highly recommend giving it a try.
Copy file name to clipboardExpand all lines: src/v2/guide/syntax.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ The double mustaches interprets the data as plain text, not HTML. In order to ou
38
38
39
39
The contents are inserted as plain HTML - data bindings are ignored. Note that you cannot use `v-html` to compose template partials, because Vue is not a string-based templating engine. Instead, components are preferred as the fundamental unit for UI reuse and composition.
40
40
41
-
<pclass="tip">Dynamically rendering arbitrary HTML on your website can be very dangerous because it can easily lead to [XSS attacks](https://en.wikipedia.org/wiki/Cross-site_scripting). Only use HTML interpolation on trusted content and **never** on user-provided content.</p>
41
+
<pclass="tip">Dynamically rendering arbitrary HTML on your website can be very dangerous because it can easily lead to [XSS vulnerabilities](https://en.wikipedia.org/wiki/Cross-site_scripting). Only use HTML interpolation on trusted content and **never** on user-provided content.</p>
@@ -92,12 +92,19 @@ When an element wrapped in a `transition` component is inserted or removed, this
92
92
93
93
### Transition Classes
94
94
95
-
There are four classes applied for enter/leave transitions.
95
+
There are six classes applied for enter/leave transitions.
96
96
97
-
1.`v-enter`: Starting state for enter. Applied before element is inserted, removed after one frame.
98
-
2.`v-enter-active`: Active and ending state for enter. Applied before element is inserted, removed when transition/animation finishes.
99
-
3.`v-leave`: Starting state for leave. Applied when leave transition is triggered, removed after one frame.
100
-
4.`v-leave-active`: Active and ending state for leave. Applied when leave transition is triggered, removed when the transition/animation finishes.
97
+
1.`v-enter`: Starting state for enter. Added before element is inserted, removed one frame after element is inserted.
98
+
99
+
2.`v-enter-active`: Active state for enter. Applied during the entire entering phase. Added before element is inserted, removed when transition/animation finishes. This class can be used to define the duration, delay and easing curve for the entering transition.
100
+
101
+
3.`v-enter-to`: **Only available in versions >=2.1.8.** Ending state for enter. Added one frame after element is inserted (at the same time `v-enter` is removed), removed when transition/animation finishes.
102
+
103
+
4.`v-leave`: Starting state for leave. Added immediately when a leaving transition is triggered, removed after one frame.
104
+
105
+
5.`v-leave-active`: Active state for leave. Applied during the entire leaving phase. Added immediately when leave transition is triggered, removed when the transition/animation finishes. This class can be used to define the duration, delay and easing curve for the leaving transition.
106
+
107
+
6.`v-leave-to`: **Only available in versions >=2.1.8.** Ending state for leave. Added one frame after a leaving transition is triggered (at the same time `v-leave` is removed), removed when the transition/animation finishes.
@@ -320,8 +328,10 @@ You can also specify custom transition classes by providing the following attrib
320
328
321
329
-`enter-class`
322
330
-`enter-active-class`
331
+
-`enter-to-class` (>= 2.1.8 only)
323
332
-`leave-class`
324
333
-`leave-active-class`
334
+
-`leave-to-class` (>= 2.1.8 only)
325
335
326
336
These will override the conventional class names. This is especially useful when you want to combine Vue's transition system with an existing CSS animation library, such as [Animate.css](https://daneden.github.io/animate.css/).
0 commit comments