Posts

Showing posts from April, 2022

Route Order in Angular - Why Is It Important?

Image
[ UPDATE : There is an error on loading of images in every post. I am working to resolve this as soon as possible. Screenshots were mere snap of windows so you can still follow the steps written in text and do the work!]  In this post, I'll be telling you what is route order and the importance of it. What are Routes? - The Router service's Routes represents a route configuration. A single route is defined by a configuration object whereas a set of routes are collected in a Routes array to define a Router configuration.  - The router attempts to match segments of a given URL against each route by using the configuration options defined in this object. Route supports a variety of route kinds, including static, parametrized, redirect, and wildcard routes, as well as custom route data and resolve methods. - Typically, the Routes array contains the following properties: path and component. Path: This contains a string and contains URL path to the route. It is the path to matc...