Signal Based View Queries in Angular 17

Опубликовано: 21 Октябрь 2024
на канале: JS Frameworks
305
13

Tired of clunky @ViewChild and @ViewChildren decorators in Angular 17? Say hello to a new era of DOM manipulation! This video dives deep into signal-based view queries, the revolutionary approach that simplifies how you access components, directives, and even plain HTML elements within your templates.

Here's what you'll learn:

Leave the Decorators Behind: Discover the power of signals and how they streamline DOM access compared to traditional decorators.
Enhanced Timing & Type Safety: See how signals ensure your code interacts with the DOM only when elements are available, boosting predictability and type safety.
Effortless Multiple Results: Grasp how to effortlessly handle scenarios where you need references to multiple elements using signal-based queries.

Github url - https://github.com/anuroopjoy/viewque...