Angular FAQ: Top Questions
22. What are observables in Angular?
Observables represent a stream of data over time and are central to Angular’s reactive programming model. They are provided by RxJS.
this.http.get<User[]>('/api/users')
.subscribe(data => this.users = data);
- Used for async operations like HTTP calls, event handling, reactive forms.
- Support operators like
map
,filter
,switchMap
.