Using A Wild Card Shortcuts Route To Hide The Internal Routing Implementation In Angular 7.2.5
DRANK

The other day, I looked at how to use wild card routes to traverse arbitrarily nested data in an Angular 7.2.4 application. That approach allows more application state to be pushed into the URL; which, ultimately, make the application more sharable and more correctly aligned with a user's expectation of browser behavior. This got me thinking about other ways in which wild card routes enhance shareability. Which got me thinking about "shortcut" routes. A shortcut route is a route designed to encapsulate the internal implementation details of the application route configuration. This allows for consistent long-term linking and the ability to trigger various routes and workflows that cannot be known ahead of time.Run this demo in my JavaScript Demos project on GitHub.View this code in my JavaScript Demos project on GitHub.One of the benefits of a route-based Angular application is that views within the application can be deep-linked. That is, a user can save (bookmark) or share a URL tha…

bennadel.com
Related Topics: Angular JavaScript GitHub