From 848911f5bce318b936f737f6b5fbed1e6ca1350f Mon Sep 17 00:00:00 2001 From: Julien Le Coupanec Date: Fri, 1 Dec 2017 15:36:30 +0100 Subject: [PATCH] Vue: directives --- frontend/vue.js | 135 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) diff --git a/frontend/vue.js b/frontend/vue.js index e9c16fd..1cacc64 100644 --- a/frontend/vue.js +++ b/frontend/vue.js @@ -546,8 +546,143 @@ vm.$destroy() * ******************************************************************************************* */ +// --- Updates the element’s textContent. +// --- If you need to update the part of textContent, you should use {{ Mustache }} interpolations. +// + + +// --- Updates the element’s innerHTML. Note that the contents are inserted as plain HTML - +// --- they will not be compiled as Vue templates. If you find yourself trying to compose templates +// --- using v-html, try to rethink the solution by using components instead. + + +//
+ + +// --- Toggle’s the element’s display CSS property based on the truthy-ness of the expression value. +// --- This directive triggers transitions when its condition changes. + + +//
+ + +// --- Conditionally render the element based on the truthy-ness of the expression value. +// --- The element and its contained directives / components are destroyed and re-constructed +// --- during toggles. If the element is a