Vue Flashcards
Describe Vues data-binding syntax?
Vue supports
Text Interpolations using the mustache {{ }} syntax/tag.
In Vue.js, a binding expression consists of a single JavaScript expression optionally followed by one or more filters.
The text we put inside mustache tags are also called binding expressions.
What is a directive?
Directives are special attributes that reactively applies dynamic behavior to the DOM when the value of its expression changes.
Directives are denotedby the v- prefix. Directive attribute values are expected to be binding expressions, so the rules about JavaScript expressions and filters mentioned above apply here as well.
Directives can have arguments and modifiers
Describe v-bind.
V-bind binds element attributes to binding expressions. this provides reactivity to element attributes.
in other words. directive is used to reactively update an HTML attribute
describe V-on
the V-on directive listens to DOM events
Describe the component API
The component API is the new advanced syntax for writing vue components.
The setup function is a new component option. It serves as the entry point for using the Composition API inside components.