Vue 3 Component Communication: Parent-Child Data Exchange
Parent-Child Component Communication
Passing Data with Props
In Vue 3, parent components can pass data to child components using props.
Defining Props in Child Components
Child components can declare their expected props using the defineProps function:
// UserProfile.vue
<template>
<div>{{ userName }}: {{ userAge }}</div&g ...
Posted on Tue, 15 Sep 2026 16:42:52 +0000 by gdure
C# Delegates and Events: Core Programming Concepts
Delegates represent one of the fundamental concepts in .NET programming, serving as powerful mechanisms for method invocation. At their core, delegates enable asynchronous and synchronous method calls, allow multiple methods to be invoked simultaneously, and facilitate passing methods as parameters for callback operations. Since program executi ...
Posted on Tue, 15 Sep 2026 16:03:50 +0000 by FSGr33n
Implementing Event Handling in C# with Publisher-Subscriber Pattern
Publisher-Subscriber Model
The publisher-subscriber pattern enables communication between components when a specific event occurs
Key participants:
Publisher: Class that defines and triggers events
Subscriber: Class that registers for event notifications
Event handler: Method executed when the publisher raises the event
Event Declaration
c ...
Posted on Thu, 20 Aug 2026 16:39:07 +0000 by cahamilton
jQuery DOM Manipulation and Event Handling Techniques
DOM Element Selection and Manipulation
jQuery provides powerful methods for selecting and manipulating DOM elements. Understanding these fundamental operations is essential for creating dynamic web interfaces.
Element Selection Methods
jQuery offers multiple approaches to select DOM elements using CSS-style selectors:
$(function() {
// Sele ...
Posted on Thu, 16 Jul 2026 17:23:09 +0000 by jason257
.NET Event Programming: Implementation Patterns, Thread Safety, and Memory Management
Basic Event Implementation
In the Observer pattern, a subject (publisher) defines an event, and observers (subscribers) register handlers for that event. When the subject triggers the event, all registered observers execute their handlers. A basic implementation follows this pattern:
public class Publisher
{
public event EventHandler<Cus ...
Posted on Thu, 09 Jul 2026 17:18:09 +0000 by kazuki
JavaScript Core Concepts and DOM Programming Guide
Wrapper Classes
JavaScript provides three wrapper classes: String, Boolean, and Number. These allow creation of object representations for primitive values.
let numericValue = new Number(42);
let textContent = new String("greetings");
let flagValue = new Boolean(true);
However, using wrapper classes in practice is strongly discourage ...
Posted on Fri, 12 Jun 2026 16:13:34 +0000 by AbraCadaver
Advanced DOM Traversal, Manipulation, and Event Delegation
DOM Tree Traversal and Modification
To modify the document structure dynamically, developers must navigate the node hierarchy. The following example demonstrates accessing parent and sibling nodes, then inserting a new element relative to a specific reference.
const currentTarget = document.querySelector('#target');
const parentHolder = current ...
Posted on Sat, 16 May 2026 06:59:58 +0000 by aarons123
Core Concepts of JavaScript DOM Interaction and Event Handling
Selecting and Manipulating DOM Elements
The Document Object Model (DOM) provides an interface for HTML documents. Developers use specific methods to locate elements based on identifiers, tags, or classes to modify their properties dynamically.
Access Methods Overview
getElementById: Returns a single element node based on its unique id attribut ...
Posted on Fri, 15 May 2026 15:44:49 +0000 by groberts23
Understanding Browser Object Model and Document Object Model in Web Development
Browser Object Model and Document Object Model
JavaScript consists of three main components: ECMAScript, DOM (Document Object Model), and BOM (Browser Object Model). While ECMAScript provides the core language features, BOM enables interaction with the browser environment, and DOM allows manipulation of HTML documents.
The Window Object
The win ...
Posted on Wed, 13 May 2026 13:00:05 +0000 by feyd
Understanding C# Delegates and Events: A Technical Guide
What is a Delegate?
A delegate in C# is a type-safe reference type that holds references to methods with a specific signature. Unlike function pointers in C++, which only point to functions, delegates encapsulate both an object instance and a method. This makes delegates fully object-oriented and type-safe.
When you declare a delegate, you are ...
Posted on Sat, 09 May 2026 07:56:24 +0000 by Clarkey_Boy