In this article, we are going to learn the relative navigation in the Angular application. While building the application with the use of absolute path we pin the same link everywhere we required that path. So when we change the parent route then we have to change the path to the links used outside also. So by the use of relative path you are making your links free that are relative to current URL segment. Your feature area of routing will be the same even if you change the route for the parent. You are just making your link free even if you change in parent route path.
source https://www.c-sharpcorner.com/article/relative-navigation-in-angular/
No comments:
Post a Comment