Vue Flashcards
Vue
Framework progresivo
Por qué es progresivo?
Conocemos a Vue como el Framework progresivo justamente por su vesatilidad. Es una pequeña librería que se encarga de resolver el problema de la vista dentro de lo que es el patrón MVC (Modelo, Vista, Controlador), pero también puede ser muy potente cuando la combinamos con parte de su ecosistema, es decir,que Vue puede ir escalando a medida que nuestro proyecto vaya incrementando los requerimientos o vaya incrementando su complejidad.
Vue es una librería enfocada a la vista que utiliza el Virtual DOM y es totalmente reactiva. Tiene dos caracteristicas principales, ___ y ___
Tiene dos caracteristicas principales, el sistema declarativo y el sistema de componentes.
___ is a state management pattern and library for the application using Vue JS. it acts as a centralized store for all the different components in your Vue JS application. It has rules to ensure that the state can be only mutated in a predictable fashion.
VueX
____ helps in applying common text formatting. It is used in two places, mustache interpolations, and v-bind expressions. It mainly filters the data on the DOM level. So you get data that is still intact in the storage but is represented in the custom specified manner. I
Filters
____ in Vue JS are a single, independent unit of an interface. They have their own state, markup, and style.
Components
A Vue component can be defined in four ways.
The first is new Vue({ /*options */ }).
The second is Vue.component(‘component-name’, { /* options */ }).
The third way is by using the local components.
The fourth is in the .vue files or Single File Components.
Vue js comes with following features
Templates
Reactivity
Components
Transitions
Routing
Create new vue instance
You can create Vue instance with the Vue function:
var vm = new Vue({ // options })
Explain one way data in Vue
In one-way data flow the view(UI) part of application does not updates automatically when data Model is change we need to write some custom code to make it updated every time a data model is changed.
In Vue js ___ is used for one-way data flow or binding.
v-bind
two-way data binding the view(UI)
In two-way data binding the view(UI) part of application automatically updates when data Model is changed.
In Vue.js ___ directive is used for two way data binding.
v-model
13) How to create Two-Way Bindings in Vue.js?
In Vue js ___ are used to transform the output that are going to rendered on browser.
filters
How create a custom filter
Vue.filter(‘reverse’, function (value) { return value.split(‘’).reverse().join(‘’) })
what is component and how to create one in the main
Vue Components are one of most powerful features of Vue js.In Vue components are custom elements that help you extend basic HTML elements to encapsulate reusable code.
Directivea
Maneras de extender el HTML con nuevos atributos y tags