Coding

Vue.js Watchers

March 13, 2017 by
Part 28 of 55 in the Vue.js: From Beginner to Professional series

Sometimes you may want to watch data for changes and react to them. Typically all you need is computed properties, but there are some scenarios where you need to implement a custom watcher. Before we talk more about when to use watchers, let’s first see an example of how to use them. We will build… read more

Hiding elements until the Vue instance is ready (v-cloak directive)

March 13, 2017 by
Part 19 of 55 in the Vue.js: From Beginner to Professional series

Since we’re on the subject of showing and hiding elements, let’s see how we can hide the string interpolation syntax that appears on the page until Vue.js is bootstrapped. Since the string interpolation syntax is simply a part of the HTML as normal text, the browser will render it as such. It will then be… read more