LogicLabs
Contact information, map and directions, contact form, opening hours, services, ratings, photos, videos and announcements from LogicLabs, Software Company, No 100, 4th Cross Street, Jaffna.
LogicLabs is a software company specializing in programming language training and custom software development, delivering practical skills and innovative digital solutions for businesses and individuals.
21/03/2026
26/02/2026
Signals in Angular 21
In Angular, Signals are a modern reactive state management system introduced to simplify change detection and improve performance.
Signals provide a more predictable and fine-grained reactivity model compared to traditional approaches like (), RxJS, or Zone.js-based change detection.
πΉ What is a Signal?
A Signal is a reactive value that:
β Stores a piece of state
β Notifies Angular when the value changes
β Automatically updates the UI
Think of it like:
"A variable that Angular watches automatically."
πΉ Basic Example
import { signal } from '/core';
count = signal(0);
// Read value
console.log(this.count());
// Update value
this.count.set(5);
// Update based on previous value
this.count.update(value => value + 1);
π Notice:
βͺοΈcount() β read value
βͺοΈcount.set() β assign value
βͺοΈcount.update() β modify value
πΉ Types of Signals
β
1. Writable Signal
Normal state that can change.
name = signal('Mohan');
β
2. Computed Signal
Derived value (auto recalculates).
count = signal(10);
doubleCount = computed(() => this.count() * 2);
β Updates automatically when count changes
β No manual subscription needed
β
3. Effect
Runs side effects when signal changes.
effect(() => {
console.log('Count changed:', this.count());
});
β Like automatic listener
β Useful for API calls, logs, etc.
πΉ Why Signals are Important
1. Better Performance
Signals enable fine-grained reactivity.
Instead of rechecking the whole component tree, Angular updates only what changed.
2. No Manual Subscriptions
With RxJS:
β Subscribe / Unsubscribe headache
With Signals:
β Automatic tracking
3. Cleaner Code
No need for:
βͺοΈasync pipe everywhere
βͺοΈComplex Observables for simple state
4. Zone-less Friendly
Signals reduce dependency on Zone.js, helping Angular move toward faster rendering.
23/02/2026
Advanced Web Development Roadmap 2026
20/02/2026
Netflix System Design
06/02/2026
β‘ npm vs pnpm- The difference most devs ignore
Most developers install packages without thinking twice.
But your package manager quietly affects:
β’ install speed
β’ disk usage
β’ CI performance
β’ team productivity
So letβs talk about npm vs pnpm π
ββββββββββββββββββββ
π¦ npm (default choice)
β
Comes preinstalled with Node
β
Simple & familiar
β Slower installs on large projects
β Duplicates packages β more disk usage
Good for small projects.
Starts hurting as your app scales.
ββββββββββββββββββββ
π pnpm (modern choice)
β
Much faster installs
β
Uses a global store (no duplication)
β
Smaller node_modules
β
Better monorepo support
Once you switch, itβs hard to go back.
ββββββββββββββββββββ
π§ Why this matters
β’ Faster local setup for new devs
β’ Faster CI/CD pipelines
β’ Less disk space wasted
β’ Better performance at scale
Small tools. Big impact.
11/01/2026
CSS centering techniques β₯οΈ
Click here to claim your Sponsored Listing.
Category
Website
Address
No 100, 4th Cross Street
Jaffna
40000