Your Choice JavaScript News

Vue News Monday, May 14 Vue, Vue users, Single root element & more…


What’s new?

  • Today people consider Vue an equal choice as to Angular and React.
  • But for the first years it was like: why using Vue when there is React and Angular?
  • But Angular, React and Vue each have a group of users that are naturally attracted to the solution because it sits well with their mental model.
  • Vue was able to fill a market gap between React and Angular and thats why we were able to grow to where we are today.
  • You can look at the track records and see how we handled breaking change in the past: we dont want to break our users code- EvanYouTo be honest there are so many companies, and I think around 300.000 developers using Vue in the world today.

Tags: Vue, Evan, Vue users, React, core team


  • Creating Multi-root Vue.js ComponentsA common constraint in component-based frameworks like Vue.js is that each component has to have a single root element.
  • This means that everything in a particular component has to descend from a single element, like this: – template – div !
  • The CodeFor simplicity, I wrote each of my paired td elements as its own single-file component, and then simply wrapped them in a functional component that passed along props to both of them.
  • js */ – import FirstCell from SecondCell from export default { – functional: true, – props: [‘person’, ‘place’, ‘thing’], – render(createElement, context) { – const first = createElement(FirstCell, { props: context.props }); – const second = createElement(SecondCell, { props: context.props }); – return [first, second]; – }, – };FirstCell and…
  • Functional components are stateless (They contain no data of their own, and thus their outputs are solely defined by props passed in.Functional components are instanceless, meaning there is no this context, instead props and related values are passed in via a context object.Looking at what the code is doing then,…

Tags: single root element, template rendering mechanism, component, abstract syntax tree, pure JavaScript file


  • Progressive Web Apps are just Web pages, but with superpowers.
  • They load under uncertain network conditions, even offline.
  • They can be installed on your smartphone if the browser supports it, feeling like a native app.
  • In this course Im gonna show you how to take an existing Single Page App made in Vue.js and pragmatically convert it to a Progressive Web App by creating a web manifest, then it goes through caching static assets, external resources and streams using service workers, applying code-splitting and lazy…

Tags: Progressive Web App, Single Page App, Progressive Web Apps, uncertain network conditions, native app


  • In this post, I’m going to provide an open source Vue.js blog demo + cover: – – The result will be a JAMstack-ready, truly decoupled Vue blog you can plug to any data sourcemore on that later.
  • Behind the scenes, Vue takes the plugin object and looks for an method, which it calls passing in Vue as the first argument and your options object as the second.
  • In we pass the plugin and our resource collection to Vue like so: – – Now all that’s left to do is to call the resources from our components by adding a option with the name of the resource we want to use.
  • We’ve got our component’s data object schema, all filled out with placeholders as recommended by Vue and our resource definition.
  • Which means you could completely change API providers & data structure and nothing would change in your Vue components.

Tags: Vue, truly decoupled Vue, root Vue instance, Vue components, data


  • The Vue-vimeo-player is a Vue.js wrapper for the Vimeo Embed Player, which allows you to use the Vimeo player as a Vue component with ease, even with Nuxt.js SSR.
  • To start working with the Vue vimeo player use the following command to install it.
  • of load it via CDN – – If used as a global component – – If used as a local component – – For usage with Nuxt.js please refer here.
  • Events emitted from the component.The ready event only passes the player instance – – If you are interested for more or you have any bugs and suggestions, click here.

Tags: Vue vimeo player, Vimeo Embed Player, Vue component, latest Vue.js news, Vue-powered static site


Top Vue Courses

Vue JS 2: From Beginner to Professional (includes Vuex) (1,798 students enrolled)

By Bo Andersen
  • How to build advanced Vue.js applications
  • How to build single page applications (SPA)
  • Understand the theory and how Vue works under the hood
  • How to manage state in large applications with Vuex
  • Communicating with servers with HTTP
  • Use modern tools for developing and building applications (e.g. webpack)

Learn more.


Vue JS 2 - The Complete Guide (incl. Vue Router & Vuex) (38,295 students enrolled)

By Maximilian Schwarzmüller
  • Build amazing Vue.js Applications - all the Way from Small and Simple Ones up to Large Enterprise-level Ones
  • Understand the Theory behind Vue.js and use it in Real Projects
  • Leverage Vue.js in both Multi- and Single-Page-Applications (MPAs and SPAs)

Learn more.


The Ultimate Vue JS 2 Developers Course (3,882 students enrolled)

By Anthony Gore
  • Understand all Vue concepts from beginner to advanced
  • Build three real world applications using Vue.js utilising every Vue feature
  • Use the Vuex statement management library
  • Write basic Vue with ES5 and also modern Vue with ES6
  • Setup VueJS environment with development tools including Webpack
  • Create a universal application with server-side rendering
  • Use popular plugins from the Vue ecosystem like vue-router and vue-resource
  • Cutting-edge features like Single File Components, Render functions and Server-Side Rendering

Learn more.


Vue JS 2.0 - Mastering Web Apps (52,495 students enrolled)

By David Katz
  • Build entire Vue JS, VueRouter, and Vuex applications from scratch.
  • Develop apps that deal with APIs and web requests.
  • Create web apps with a full authentication service, and real-time database.

Learn more.


Learn by Doing: Vue JS 2.0 the Right Way (1,437 students enrolled)

By Dejan Stošić
  • Build your own VueJS application of any size
  • Plan and structure your project
  • Write maintainable code
  • Use smart development tools like vue-cli

Learn more.