vue on load

Before you begin this tutorial you’ll need the following: 1. We can use the v-on directive to listen to DOM events and run some JavaScript when they’re triggered.For example:Result: Before we get started: there already is a perfectly fine solution for lazy loading images with Vue.js: Vue-Lazyload. Both created and mounted hooks seem like they would work. 22 November 2018. Vue’s asynchronous components allows you to fetch components from the server only when you need them. All Vue components have a series of stages — or lifecycles — that they go through. It provides a set of values which can be used to configure how the image will display: Values. In Dropdown.vue we add our options prop: