Category "angular-router"

Anglar 13 route guard (canActivate) only works on first page load

Solution found - since the solution is much shoerter than the problem, I add it here: The problem was not the guard (even though I optimized the guard by using

Angular how to disable authGuard on particular child page

can anyone suggest best way to disable authguard (applied on parent level) on a single child page. ROUTES:Routes = [ { path: '', component:

An Observable for the Current Activated Route?

For various purposes, it may be advantageous to attach a listener to the Router which is called every time the route changes. This could be used to trigger an A

CanActivate guards on child routes run before parent Resolve finish

I'm trying to resolve data before navigating to children routes as i have to use that data in children guard. The issue is parent resolver, resolves data after

Angular routerLinkActive only updates after clicking somewhere on the screen

Using Angular 13 I have a side menu which I build like this <mat-nav-list> <a mat-list-item *ngFor="let page of pages" [routerLink]="page.link" route

Guard not re-routing to other component

I have these two guards @Injectable({ providedIn: 'root' }) export class DesktopGuard implements CanActivate { constructor( private router: Router, p

How to implement routed tabs with angular material, within a child route?

I want to use Angular Material tabs https://material.angular.io/components/tabs with a router navigation in the tabs. I tried to use <nav mat-tab-nav-bar>