From the course: Angular Essential Training
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Angular signals and the Signal function - Angular Tutorial
From the course: Angular Essential Training
Angular signals and the Signal function
- [Instructor] Starting in version 16, the Angular team introduced something called Signals that you can use to make your code more reactive. Reactive programming is a coding pattern where you can watch for changes in data over time and trigger things to happen based on those changes. This coding pattern is a big part of the Angular framework and all Angular developers should be familiar with Signals and how to use them. Signals wrap your data inside getters and setters that Angular can easily track. When a value changes, Angular can propagate that one change to any place in the code that needs it. This is more efficient than Angular's other change detection strategies. We looked at change detection in detail earlier in this course. For now, just know that by default, Angular needs to check all the components and child components that might have changed before actually making that change. With Signals, Angular updates just…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.