Send Data Through Routing
#angular #router
β Link: https://medium.com/@deepachaurasia33/possible-ways-to-send-data-through-routing-in-angular-f1f72742c2da
#angular #router
β Link: https://medium.com/@deepachaurasia33/possible-ways-to-send-data-through-routing-in-angular-f1f72742c2da
This media is not supported in your browser
VIEW IN TELEGRAM
Route Reuse Strategy in Angular
#angular #router #RouteReuseStrategy
β Link: https://blog.bitsrc.io/angular-route-reuse-strategy-c7939ebbf797
#angular #router #RouteReuseStrategy
β Link: https://blog.bitsrc.io/angular-route-reuse-strategy-c7939ebbf797
β³οΈ Dynamic ways to conditionally lazy load a component in Angular
#angular #DynamicComponent #router #route #import #resolver #ngComponentOutlet #RouterOutlet
β Link: https://ankit-kaushik.medium.com/dynamic-ways-to-conditionally-lazy-load-a-component-in-angular-9feb5317df2a
#angular #DynamicComponent #router #route #import #resolver #ngComponentOutlet #RouterOutlet
β Link: https://ankit-kaushik.medium.com/dynamic-ways-to-conditionally-lazy-load-a-component-in-angular-9feb5317df2a
β³οΈ Navigation Error Handling
#angular #router #withNavigationErrorHandler
π©> Angular 16
β Article Link: https://medium.com/@artur.fedotiew/%EF%B8%8F-simplifying-navigation-error-handling-with-angulars-upcoming-feature-%EF%B8%8F-b55ee04d246a
#angular #router #withNavigationErrorHandler
π©> Angular 16
β Article Link: https://medium.com/@artur.fedotiew/%EF%B8%8F-simplifying-navigation-error-handling-with-angulars-upcoming-feature-%EF%B8%8F-b55ee04d246a
π1
This media is not supported in your browser
VIEW IN TELEGRAM
π§ͺ
#angular #router #withViewTransitions
π© > Angular 17
β Article link: https://netbasal.com/angular-v17s-view-transitions-navigate-in-elegance-f2d48fd8ceda
withViewTransitions in Angular #angular #router #withViewTransitions
π© > Angular 17
β Article link: https://netbasal.com/angular-v17s-view-transitions-navigate-in-elegance-f2d48fd8ceda
π Angular Named Router Outlets
#angular #router #outlets
β Article link
#angular #router #outlets
<!-- wrapper-layout.component.html -->
<div class="container">
<div class="row">
<div>
<left-side></left-side>
</div>
<div>
<router-outlet
name="showright"
></router-outlet>
</div>
</div>
</div>
/** routing.module.ts */
{
path: 'connect',
component: WrapperLayoutComponent,
children: [
{
path: '',
component: RightSideComponent,
outlet: 'showright'
},
]
},
// component navigation action
this.router.navigate([
'/connect',
{ outlets: { showright: ['user-info'] } }
]);
β Article link
π3β€1π₯1
π§ͺ Navigating Angular Apps: RedirectCommand
#angular #router
π© > Angular 18
β Article link
#angular #router
Here are two common scenarios where this technique is particularly useful:
- Redirecting to a 404 Page for Unknown Resources: When attempting to access an unknown resource, itβs typical to redirect to a 404 page. The expected behavior here is akin to skipLocationChange, where users can see the URL of the unknown resource, allowing them to identify and correct any typos. However, with the UrlTree technique, the URL displayed after the redirect shows /404.
- Performing a 301 Redirect to a Resourceβs Canonical URL: In cases where a resourceβs URL can be renamed or aliased, performing a 301 redirect to its canonical URL is beneficial. Ideally, this should behave like replaceUrl, where users see the canonical URL without the option to navigate back to the obsolete or aliased URL. Yet, with the UrlTree technique, users can still navigate back to the obsolete or aliased URL.
π© > Angular 18
β Article link
π2
#angular #guard #router #routing
The CanMatch interface is a part of Angularβs routing mechanism that enables conditional route matching. It provides a way to define guard logic that runs before the router tries to activate a route. If all CanMatch guards return true, the router proceeds with navigation to the route. If any guard returns false, the route is skipped for matching, and the router evaluates other route configurations.
β Article link
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
π2