Signals: Fine-Grained Reactivity
Type in the search box to filter the list. A computed signal automatically recalculates the filteredItems whenever the searchTerm signal changes.
@for (item of filteredItems(); track item) {
{{ item }}
}
component.ts
component.html