Code for Creating Your First Vue Custom Directive
LearnVue | VueJS Made Easy
by Matt Maribojoc
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
Visit website
Making a Markdown-Based Blog with Vue and Gridsome
LearnVue | VueJS Made Easy
by Matt Maribojoc
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
Visit website
5 VueUse Library Functions That Can Speed Up Development
LearnVue | VueJS Made Easy
by Matt Maribojoc
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
Visit website
Lazy Load Components in Vue with defineAsyncComponent
LearnVue | VueJS Made Easy
by Matt Maribojoc
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
Visit website
The Beginner’s Guide to Vue Template Refs – with Vue 3 Updates
LearnVue | VueJS Made Easy
by Matt Maribojoc
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
Visit website
Building Your Own Vue 3 Plugin – A Full Guide
LearnVue | VueJS Made Easy
by Matt Maribojoc
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
Visit website
A Vue Firebase Authentication Tutorial – Vue 3 and Firebase
LearnVue | VueJS Made Easy
by Matt Maribojoc
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
Visit website
Explaining the Vue Context Argument – A Composition API Tutorial
LearnVue | VueJS Made Easy
by Matt Maribojoc
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
Visit website
How to Use Vue CSS Variables – Reactive Styles RFC
LearnVue | VueJS Made Easy
by Matt Maribojoc
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
Visit website
A Guide to Vue $emit – How to Emit Custom Events in Vue
LearnVue | VueJS Made Easy
by Matt Maribojoc
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
Visit website

Follow LearnVue | VueJS Made Easy on FeedSpot

Continue with Google
Continue with Apple
OR