Angular Tutorial 0/55 lessons ~6 min read Lesson 44
Angular linkedSignal
Angular linkedSignal in Advanced Angular: core concepts, worked examples, and practical guidance in one focused lesson.
Course progress0%
Focus
4 guided sections
Practice signal
Examples included
Career prep
Interview Q&A included
Introduction
linkedSignal creates a writable signal that resets (or recomputes) when a source signal changes — useful for "draft" UI state tied to a selected entity.
Purpose of this lesson
You will keep an editable title draft in sync when the selected course changes.
Informative example
Draft title linked to selection:
typescript
import { Component, linkedSignal, signal } from "@angular/core";@Component({selector: "tlp-course-editor",template: `<input [value]="draftTitle()" (input)="draftTitle.set($any($event.target).value)" />`,})export class CourseEditorComponent {course = signal({ id: "angular", title: "Angular" });draftTitle = linkedSignal(() => this.course().title);}
Advanced interview questions
Interview Prep
Practice concise answers, then expand each card for the explanation.
1IntermediateQuestionWhen prefer linkedSignal over computed?+
Answer
computed is read-only derived state. linkedSignal is writable local state that should reinitialize when a source changes — like form drafts tied to the current record.
Ready to mark this lesson complete?Track your journey across the entire course.