Skip to content

Instantly share code, notes, and snippets.

@rg3915
Last active May 3, 2018 23:14
Show Gist options
  • Save rg3915/63050b2df2b3955ece85a02ab21d13cb to your computer and use it in GitHub Desktop.
Save rg3915/63050b2df2b3955ece85a02ab21d13cb to your computer and use it in GitHub Desktop.
VueJS annotations

VueJS Annotations

v-model

v-on eventos

v-on:click="onbotao()"
@click
@change

v-bind atributos

v-bind:rows="linhas"
:rows

Atalho: @ = "v-on:" e : = "v-bind:"

v-if

ex: um elemento pode existir ou não no template.

v-show

ex: um elemento pode existir, mas ficar oculto: style="display:none"

:class

:class="{bordinha: v3}"

:style

:style="{transform: 'rotate('+angulo+'deg)'}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment