Computer Science, asked by rajalakshmanan33, 6 months ago

which is used to change the path in url and load the required components based on the path​

Answers

Answered by missxlyrical04
0

Define your routes in your Routes array. Each route in this array is a JavaScript object that contains two properties. The first property, path , defines the URL path for the route. The second property, component , defines the component Angular should use for the corresponding path.

Answered by KANISHSHYAM
1

Answer:

You can use the activated route component's snapshot to get this url. if you reload page , you can not get route path by Router or ActivatedRoute . You can use window. location.

hope it's helpful to you ✌️✌️✌️✌️✌️✌️

Similar questions