Creating and Using Global Components in Vue 3
What Are Global Components?
Global components are reusable Vue components that can be accessed anywhere in your application, unlike local components which are restricted to the scope of their parent component. Once registered globally, you can reference these components in any template without additional imports or local registration, streamlin ...
Posted on Sun, 21 Jun 2026 18:05:36 +0000 by arpowers
Vue.js Interview Essentials: Key Concepts and Implementation Details
This collection covers frequently asked Vue.js interview questions, including fundamental concepts, implementation details, and best practices. The question are categorized by importance (⭐ to ⭐⭐⭐) based on their relevance to Vue development.
1. Vue.js Data Binding Principles ⭐⭐⭐
Vue 2: Implements data binding through a combination of ob ...
Posted on Sun, 21 Jun 2026 17:47:07 +0000 by lorri
Styling and Implementing Buttons in HarmonyOS ArkUI
Creating a Circular Button
A circular button can be created by setting the ButtonType to Circle.
Button('Circle', { type: ButtonType.Normal, stateEffect: false })
.backgroundColor(0x317aff)
.width(90)
.height(90)
Note: The borderRadius property cannot be used to override the shape of a Circle type button.
Customizing Button Appearance
Va ...
Posted on Sat, 20 Jun 2026 16:52:25 +0000 by xsaero00
Implementing a Drag-and-Drop Interface with Vue Draggable
The draggable component defines a source area from which elements can be dragged.
<draggable
v-if="sourcePanelActive"
:list="availableItems"
:group="{ name: 'dragGroup', pull: 'clone', put: false }"
:sort="false"
:move="validateDragOperation"
@end="handleDragEnd&q ...
Posted on Fri, 12 Jun 2026 18:31:09 +0000 by JasonTC
Implementing a Unified Request Handler and User Interface in a Uni-App Project
A request handler centralizes HTTP opertaions, managing authentication, error handling, and API interactions. Below is a refactored implementation using async/await for clarity.
import authStore from '@/store/auth'
import appConfig from '@/config/app'
import { fetchAuthToken } from '@/utils/authentication'
import { errorMessages } from '@/utils ...
Posted on Thu, 28 May 2026 21:10:23 +0000 by vinny69
A Technical Overview of jQuery for Modern Web Development
What is jQuery?
jQuery is a compact, cross-browser compatible JavaScript library designed to simplify client-side scripting. It abstracts complex DOM manipulation, event handling, animation, and Ajax interactions into a concise syntax, adhering to the philosophy of "Write less, do more."
Key Advantages
Lightweight Footprint: The core ...
Posted on Wed, 27 May 2026 16:25:36 +0000 by autumn
Handling Dynamic Phone Number Lists in WeChat Mini Programs
To implement a dynamic form where users can manage multiple phone numbers, distinguish between existing backend data and new user inputs using a flag within the data structure. This approach alllows conditional rendering in the view layer while maintaining a single source of truth in the JavaScript logic.
Data Structure Design
Define an array w ...
Posted on Thu, 21 May 2026 20:03:12 +0000 by urneegrux
Mastering Vue.js Modifiers: Syntax, Behavior, and Implementation
Event Propagation and Default Behavior Modifiers
.stop – Halting Event Bubbling
Event bubbling causes a triggered event to propagate upward through the DOM tree. The .stop modifier intercepts this propagation, functioning identically to invoking event.stopPropagation() within the handler.
<template>
<section @click="handleContai ...
Posted on Wed, 20 May 2026 19:57:01 +0000 by kparish
Installing Vue CLI and Generating Webpack Projects
Vue CLI is the official command-line tool for scaffolding Vue.js applications, enabling rapid project initialization.Node.js PrerequisitesBegin by ensuring Node.js is installed. Verify the installation by checking the version numbers:node --version
npm --version
Global Vue CLI InstallationInstall Vue CLI globally using npm:npm install -g @vue/c ...
Posted on Tue, 19 May 2026 13:50:48 +0000 by stiduck
Key Differences Between Vue 2 and Vue 3
Lifecycle Hooks
Vue 2
Description
Vue 3
beforeCreate()
Before creation
setup()
created()
After creation
setup()
beforeMount()
Before mounting
onBeforeMount()
mounted()
After mounting
onMounted()
beforeUpdate()
Before update
onBeforeUpdate()
updated()
After update
onUpdated()
beforeDestroy()
Before destruction
onBeforeUnmount( ...
Posted on Sat, 16 May 2026 13:57:10 +0000 by awpti