angular-viewchild

Community

Safely access and manage Angular view queries

Authoroguzhan18
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides clear guidance for reliably accessing DOM elements, child component instances, and projected content inside Angular components while avoiding common lifecycle and timing mistakes.

Core Features & Use Cases

  • Query types: Explains when to use ViewChild, ContentChild, ViewChildren, and ContentChildren for single and multiple targets.
  • Lifecycle & timing: Describes static vs dynamic queries and which lifecycle hooks (ngOnInit, ngAfterViewInit) to rely on.
  • Advanced options: Covers the read option, QueryList iteration, integration with signals/effects, and accessing element vs component instances.
  • Use Case: Focus an input after render, iterate over child items to initialize state, or access a projected template for custom rendering.

Quick Start

Use the angular-viewchild skill to review a component and convert unsafe DOM access into properly timed ViewChild/ViewChildren queries integrated with the correct lifecycle hooks.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: angular-viewchild
Download link: https://github.com/oguzhan18/angular-ecosystem-skills/archive/main.zip#angular-viewchild

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.