v-cloak

v-cloak

  • Does not expect expression

  • Usage:

    This directive will remain on the element until the associated Vue instance finishes compilation. Combined with CSS rules such as [v-cloak] { display: none }, this directive can be used to hide un-compiled mustache bindings until the Vue instance is ready.

  • Example:

    [v-cloak] {
      display: none;
    }
    <div v-cloak>
      {{ message }}
    </div>

    The <div> will not be visible until the compilation is done.

doc_VueJS
2016-09-25 05:48:15
Comments
Leave a Comment

Please login to continue.