DEV Community

Digamber Rawat
Digamber Rawat

Posted on

3 2

Angular 9|8|7 ActivatedRoute Route Tutorial with Example

The post (https://www.positronx.io//understand-angular-7-activatedroute-route-and-its-usage/) appeared first on positronX.io.

Understand Angular 7|8|9 ActivatedRoute Interface Class
Angular offers ActivatedRoute interface class, it carries the information about a route linked to a component loaded into the Angular app template. An ActivatedRoute contains the router state tree within the angular app’s memory.

Understand ActivatedRoute Interface Class Properties

Snapshot – This is the current snapshot of this route.
URL – It is an observable of the URL segments and it matched by this route

Params – Observable of the matrix parameters scoped to this route

QueryParams – Observable of the query parameters shared by all the routes

Fragment – Observable of the URL fragment shared by all the routes

Click here to read more

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay