Explorar o código

document dynamic block partial

Evan You %!s(int64=11) %!d(string=hai) anos
pai
achega
b442ceee5f
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  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)`.