Procházet zdrojové kódy

document dynamic block partial

Evan You před 11 roky
rodič
revize
b442ceee5f
1 změnil soubory, kde provedl 12 přidání a 0 odebrání
  1. 12 0
      changes.md

+ 12 - 0
changes.md

@@ -578,6 +578,18 @@ Rendered result:
 <!--v-block-end-->
 ```
 
+Additionally, you can also use `v-partial` with `<template>` for a block partial:
+
+``` html
+<template v-partial="abc"></template>
+```
+
+Which is the equivalance of `{{>abc}}`. However, the `<template>` syntax allows you to bind a **dynamic block partial**:
+
+``` html
+<template v-partial="{{partialId}}"></template>
+```
+
 ## Misc
 
 - `$destroy()` now by default leaves `$el` intact. If you want to remove it (and trigger transitions), call `$destroy(true)`.