LearnVue | VueJS Made Easy
241 FOLLOWERS
Easy to Follow Tips and Tutorials for All Developers.
LearnVue | VueJS Made Easy
2y ago
Hey! Thanks for checking out LearnVue. Here is the code for Creating Your First Vue Custom Directive. If you haven’t seen the Youtube video, I recommend checking it out! [gist]0bab3a86ee723e67d2f36b7208ddca4d[/gist] [gist]09b0923363d8fd46b6c86457db40280f[/gist] If you have any questions, please leave them on the original post or the Youtube video. Those are checked a lot more frequently than this...
Source ..read more
LearnVue | VueJS Made Easy
2y ago
Using Vue with Gridsome is one of the easiest ways to create static websites. Gridsome is a powerful JAM-stack framework for Vue that allows to pull in data from different sources (Markdown files, Netlify, or any Headless CMS), transform that data using GraphQL, and then procedurally generate a static site using Vue templates. In this article, we’re going to be building a blog that allows us to...
Source ..read more
LearnVue | VueJS Made Easy
3y ago
VueUse is an open-source project by Anthony Fu that provides Vue developers with a huge collection of essential Composition API utility functions for both Vue 2 and Vue 3. It has dozens of solutions for common developer use cases like tracking ref changes, detecting element visibility, simplifying common Vue patterns, keyboard/mouse inputs, and more. It’s a great way to really save time in...
Source ..read more
LearnVue | VueJS Made Easy
3y ago
Using Vue 3’s feature lets us lazy load components. This means that they’re only loaded from the server when they’re needed. This is a great way to improve initial page loads as our app will be loaded in smaller chunks rather than having to load every single component when the page loads. Imperva.com In this tutorial, we’ll learn all about and look at an example that defers the loading of a popup...
Source ..read more
LearnVue | VueJS Made Easy
3y ago
Vue Template Refs give our Javascript code a reference to easily access the template. For example, if we needed quick access to a component or HTML element, template refs is the perfect solution. In Vue 3, the Composition API gives us another way to use template refs. It joins the concept of reactive refs and template refs giving us just one syntax in our Javascript for both situations.
Source ..read more
LearnVue | VueJS Made Easy
3y ago
Plugins are a great way to add reusable functionality to your Vue apps. With tons of existing plugins for components, routing, and more, the ecosystem for Vue has solutions for many common use cases. Some examples of commonly used plugins are vue-router, vue custom-element, and vue-touch. However, there will come a time when there isn’t a plugin that perfectly matches your project, or a time when...
Source ..read more
LearnVue | VueJS Made Easy
3y ago
Allowing users to create their own profiles is a common use case for many modern web apps. Trying to set this up on your own custom database can a little tricky – dealing with persistence, O-Auth, and encryption. Luckily for us Vue developers, we can easily add Firebase to our Vue app. This means we can create a simple Vue and Firebase authentication system that supports so many of these standard...
Source ..read more
LearnVue | VueJS Made Easy
3y ago
When working in the Vue 3 Composition API, there are brand new ways to access component functionality. In this article, we’ll be taking a look at the setup function’s context argument. These changes are necessary because, in the Composition API, we don’t have the same reference to as we do in the Options API. In the Options API, we could call in any of the options and get a reference to the...
Source ..read more
LearnVue | VueJS Made Easy
3y ago
The Single File Component Styles RFC gives us Vue developers a way to use a component’s reactive data as CSS variables. In just one simple syntax, we can update styles at runtime in Vue 3. This proposed change takes full advantage of CSS variables, which most modern browsers support, and Vue 3’s reactivity library. Combining the two gives us an easy way to update our styles using our component’s...
Source ..read more
LearnVue | VueJS Made Easy
3y ago
Vue $emit lets us emit, or send, custom events from a child component to its parent. In a standard Vue flow, this is the best way to trigger certain events (like closing a popup, for example) or to send data from a child component (like making a custom input). This article focuses in detail on Vue $emit, click here for a broader guide on handling Vue events. Each Vue $emit call can pass two...
Source ..read more