Category Archives: vuejs

Vuejs: computed properties and watches

[Fuente: https://vuejs.org/v2/guide/computed.html] Computed Properties and Watchers Computed Properties In-template expressions are very convenient, but they are meant for simple operations. Putting too much logic in your templates can make them bloated and hard to maintain. For example: <div id=”example”> {{ message.split(”).reverse().join(”) }} </div> At this point, the template is no longer simple and declarative. You […]

Vuejs Template syntax

[Fuente: https://vuejs.org/v2/guide/syntax.html] Template Syntax Vue.js uses an HTML-based template syntax that allows you to declaratively bind the rendered DOM to the underlying Vue instance’s data. All Vue.js templates are valid HTML that can be parsed by spec-compliant browsers and HTML parsers. Under the hood, Vue compiles the templates into Virtual DOM render functions. Combined with […]

Vuejs The instance

[Fuente: https://vuejs.org/v2/guide/instance.html] The Vue Instance Creating a Vue Instance Every Vue application starts by creating a new Vue instance with the Vue function: var vm = new Vue({ // options }) Although not strictly associated with the MVVM pattern, Vue’s design was partly inspired by it. As a convention, we often use the variable vm (short for ViewModel) to refer to our […]

Vuejs Introduction 1

[Fuente https://vuejs.org/v2/guide/] What is Vue.js? Vue (pronounced /vjuː/, like view) is a progressive framework for building user interfaces. Unlike other monolithic frameworks, Vue is designed from the ground up to be incrementally adoptable. The core library is focused on the view layer only, and is easy to pick up and integrate with other libraries or existing projects. On […]