Query Parameter
noun
say it: “KWEER-ee puh-RAM-ih-ter” /ˈkwɪəri pəˈræmɪtər/
An optional name=value pair after the ? in an address that an Angular page reads, such as a page number.
What is Query Parameter in Angular?
Query Parameter — An optional name=value pair after the ? in an address, such as ?category=tea&page=2. An Angular page reads them to filter or page its list, and a link sets them with [queryParams].
<a routerLink="/products" [queryParams]="{ category: 'tea', page: 2 }">Teas, page 2</a>
<!-- /products?category=tea&page=2 -->
In a sentence
- “The query parameter page=2 tells the product list which page to show.”
Level: Journeyman · More Angular terms at this level
Updated