ActivatedRoute
noun
say it: “AK-tih-vay-tid ROWT” /ˈæktɪveɪtɪd raʊt/
An Angular service that a routed component injects to read its route's parameters and query parameters.
What is ActivatedRoute in Angular?
ActivatedRoute — A service a routed component injects to learn about the route that opened it: its parameters, its query parameters and its data.
private readonly route = inject(ActivatedRoute);
protected readonly id = this.route.snapshot.paramMap.get('id');
In a sentence
- “The component reads the id from ActivatedRoute's paramMap.”
Level: Journeyman · More Angular terms at this level
Updated